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)))
The function list() will convert an item to a list. 
dataset/ETHPy150Open tuturto/pyherc/src/pyherc/test/unit/test_inventory.py/TestInventory.test_accessing_items--crossover with--dataset/ETHPy150Open codelikeagirlcny/python-lessons-cny/code-exercises-etc/section_09_(functions)/ajm.remove-duplicates-demo.20160117.py/remove_duplicates