def test_list_remove(self): key = object() value = object() storage = mock.Mock() d = DictDB(storage, {key: [value]}) d.list_remove(key, value) storage.setitem.assert_called_with(key, [])