def test_celestial_getter_and_setter(self): celestial = mock.MagicMock() entity = Entity() self.assertIsNone(entity.celestial) entity.celestial = celestial self.assertEqual(entity.celestial_uuid, celestial.uuid) entity.celestial = None self.assertIsNone(entity.star_system)
def test_brain_getter_and_setter(self): brain = mock.MagicMock() entity = Entity() self.assertIsNone(entity.brain) entity.brain = brain self.assertEqual(entity.brain_uuid, brain.uuid) entity.brain = None self.assertIsNone(entity.brain)