Exemple #1
0
    def test_has_component(self):
        cat = Entity()

        catalive = Alive()
        cat.components.add(catalive)
        self.assertTrue(cat.has_component(Alive))