Example #1
0
 def test_recievefromstdout_subtype(self):
     s1 = Stdout(FileSubclass())
     s2 = File()
     self.assertTrue(s2.can_receive_from(s1))
Example #2
0
 def test_receivefromstdout_file(self):
     s1 = Stdout()
     s2 = File()
     self.assertTrue(s2.can_receive_from(s1))
Example #3
0
 def test_recievefromstdout_optional(self):
     s1 = Stdout()
     s2 = File(optional=True)
     self.assertTrue(s2.can_receive_from(s1))
Example #4
0
 def test_inheritance_forward(self):
     f1 = FileSubclass()
     f2 = File()
     self.assertTrue(f2.can_receive_from(f1))