def test_creating_creature_with_effect(self): """ Test that creature with effect can be created """ creature = self.generator.generate_creature(name = 'spider') assert_that(creature, has_effect_handle())
def test_creating_creature_with_effect_handle(self): """ Test that creature with effect handle can be created """ creature = self.creatures(name='spider') assert_that(creature, has_effect_handle())
def test_creating_creature_with_effect_handle(self): """ Test that creature with effect handle can be created """ creature = self.creatures(name='spider') assert_that(creature, has_effect_handle())
def test_generate_item_with_effect(self): """ Test that item with effect can be generated """ item = self.generator.generate_item(name = 'healing potion') assert_that(item, is_(not_none())) assert_that(item, has_effect_handle())
def test_generate_item_with_effect(self): """ Test that item with effect can be generated """ item = self.generator.generate_item(name='healing potion') assert_that(item, is_(not_none())) assert_that(item, has_effect_handle())
def test_adding_effect_handle(self): """ Test that effect handle can be added and retrieved """ handle = EffectHandleBuilder().build() self.collection.add_effect_handle(handle) assert_that(self.collection, has_effect_handle(handle))
def test_removing_handle(self): """ Test that a handle can be removed """ handle = EffectHandleBuilder().build() self.collection.add_effect_handle(handle) self.collection.remove_effect_handle(handle) assert_that(self.collection, is_not(has_effect_handle(handle)))