Home
last modified time | relevance | path

Searched refs:mock_stdout (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_zipapp.py382 def test_info_command(self, mock_stdout): argument
390 self.assertEqual(mock_stdout.getvalue(), "Interpreter: <none>\n")
/external/scapy/scapy/
Dutils.py467 mock_stdout = mock.Mock()
468 mock_stdout.write = write
470 sys.stdout = mock_stdout
/external/tensorflow/tensorflow/python/keras/engine/
Dtraining_test.py765 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())
/external/python/cpython3/Doc/library/
Dunittest.mock.rst1194 ... def test(mock_stdout):
1196 ... assert mock_stdout.getvalue() == 'Something\n'
1244 ... def test(mock_stdout):