def test_removing_weapon_in_use(self):
        item = mock()

        self.character.inventory.append(item)
        self.character.inventory.weapon = item

        self.character.inventory.remove(item)

        assert_that(self.character.inventory.weapon, is_(none()))
Locate an object by name or dotted path, importing as necessary.
dataset/ETHPy150Open tuturto/pyherc/src/pyherc/test/unit/test_inventory.py/TestInventory.test_removing_weapon_in_use--crossover with--dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/pydoc.py/locate