示例#1
0
 def test_inequality(self):
     m1 = ChildActorExited(1)
     assert m1 != 1
     assert m1 != ChildActorExited('one')
     assert m1 != ChildActorExited(0)
     assert m1 != ChildActorExited(None)
示例#2
0
 def test_inheritance(self):
     assert isinstance(ChildActorExited(1), ChildActorExited)
     assert isinstance(ChildActorExited('one'), ChildActorExited)
     assert isinstance(ChildActorExited(1), ActorSystemMessage)
     assert isinstance(ChildActorExited('one'), ActorSystemMessage)
示例#3
0
 def test_equality(self):
     m1 = ChildActorExited(1)
     assert m1 == ChildActorExited(1)
示例#4
0
 def test_properties(self):
     assert 1 == ChildActorExited(1).childAddress
     assert ChildActorExited(None).childAddress is None
     assert 'foo' == ChildActorExited('foo').childAddress
示例#5
0
 def test_equality(self):
     m1 = ChildActorExited(1)
     self.assertEqual(m1, ChildActorExited(1))
示例#6
0
 def test_inheritance(self):
     self.assertTrue(isinstance(ChildActorExited(1), ChildActorExited))
     self.assertTrue(isinstance(ChildActorExited('one'), ChildActorExited))
     self.assertTrue(isinstance(ChildActorExited(1), ActorSystemMessage))
     self.assertTrue(isinstance(ChildActorExited('one'),
                                ActorSystemMessage))
示例#7
0
 def test_properties(self):
     self.assertEqual(1, ChildActorExited(1).childAddress)
     self.assertEqual(None, ChildActorExited(None).childAddress)
     self.assertEqual('foo', ChildActorExited('foo').childAddress)
示例#8
0
 def test_inequality(self):
     m1 = ChildActorExited(1)
     self.assertNotEqual(m1, 1)
     self.assertNotEqual(m1, ChildActorExited('one'))
     self.assertNotEqual(m1, ChildActorExited(0))
     self.assertNotEqual(m1, ChildActorExited(None))