def test_accessing_items(self):
        item_1 = mock()
        item_2 = mock()

        self.character.inventory.append(item_1)

        assert_that(self.character.inventory[0], is_(equal_to(item_1)))

        self.character.inventory[0] = item_2

        assert_that(self.character.inventory[0], is_(equal_to(item_2)))
Test that items can be added and retrieved from inventory
dataset/ETHPy150Open tuturto/pyherc/src/pyherc/test/unit/test_inventory.py/TestInventory.test_accessing_items