def test_World_delete_entities(self): w = World() e1 = Entity(w) e2 = Entity(w) assert len(w.entities) == 2 w.delete_entities((e1, e2)) assert len(w.entities) == 0 # The next should have no effect w.delete_entities((e1, e2))
def test_World_delete_entities(self): w = World() e1 = Entity(w) e2 = Entity(w) self.assertEqual(len(w.entities), 2) w.delete_entities((e1, e2)) self.assertEqual(len(w.entities), 0) # The next should have no effect w.delete_entities((e1, e2))