def test_dropping_item(self): """ Items dropped by character should end on the floor """ dagger = Dagger() Uglak = Goblin(carrying(dagger)) place(Uglak, middle_of(Level())) make(Uglak, drop(dagger)) assert_that(Uglak, has_dropped(dagger))
def impl(context, character_name, item_name): character = get_character(context, character_name) item = get_item(context, item_name) make(character, drop(item))