def test_inequality(self): m1 = ChildActorExited(1) assert m1 != 1 assert m1 != ChildActorExited('one') assert m1 != ChildActorExited(0) assert m1 != ChildActorExited(None)
def test_inheritance(self): assert isinstance(ChildActorExited(1), ChildActorExited) assert isinstance(ChildActorExited('one'), ChildActorExited) assert isinstance(ChildActorExited(1), ActorSystemMessage) assert isinstance(ChildActorExited('one'), ActorSystemMessage)
def test_equality(self): m1 = ChildActorExited(1) assert m1 == ChildActorExited(1)
def test_properties(self): assert 1 == ChildActorExited(1).childAddress assert ChildActorExited(None).childAddress is None assert 'foo' == ChildActorExited('foo').childAddress
def test_equality(self): m1 = ChildActorExited(1) self.assertEqual(m1, ChildActorExited(1))
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))
def test_properties(self): self.assertEqual(1, ChildActorExited(1).childAddress) self.assertEqual(None, ChildActorExited(None).childAddress) self.assertEqual('foo', ChildActorExited('foo').childAddress)
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))