示例#1
0
 def test_receive_from_nonfile_stdout(self):
     s1 = FileSubclass()
     s2 = Stdout(FileSubclass())
     self.assertTrue(s2.can_receive_from(s1))
示例#2
0
 def test_receivefromstdout_reverse(self):
     s1 = File()
     s2 = Stdout(FileSubclass())
     self.assertFalse(s2.can_receive_from(s1))