def test_receive_from_nonfile_stdout(self):
     s1 = FileSubclass()
     s2 = Stdout(FileSubclass())
     self.assertTrue(s2.can_receive_from(s1))
 def test_receivefromstdout_reverse(self):
     s1 = File()
     s2 = Stdout(FileSubclass())
     self.assertFalse(s2.can_receive_from(s1))