Exemple #1
0
 def test_not_command(self):
     client = unittest.TestResult()
     out = StringIO()
     protocol = subunit.TestProtocolServer(client,
         stream=subunit.DiscardStream(), forward_stream=out)
     pipe = StringIO("success old mcdonald\n")
     protocol.readFrom(pipe)
     self.assertEqual(client.testsRun, 0)
     self.assertEqual("", out.getvalue())
Exemple #2
0
 def test_write(self):
     subunit.DiscardStream().write("content")