Searched refs:mock_stdout (Results 1 – 4 of 4) sorted by relevance
382 def test_info_command(self, mock_stdout): argument390 self.assertEqual(mock_stdout.getvalue(), "Interpreter: <none>\n")
467 mock_stdout = mock.Mock()468 mock_stdout.write = write470 sys.stdout = mock_stdout
765 mock_stdout = io.BytesIO() if six.PY2 else io.StringIO()772 with test.mock.patch.object(sys, 'stdout', mock_stdout):775 self.assertTrue('Epoch 5/10' in mock_stdout.getvalue())
1194 ... def test(mock_stdout):1196 ... assert mock_stdout.getvalue() == 'Something\n'1244 ... def test(mock_stdout):