def test_recent_item(self): recent = set() importer._item_duplicate_check(self.lib, self._item_task(False, 'xxx', 'yyy'), recent) res = importer._item_duplicate_check( self.lib, self._item_task(False, 'xxx', 'yyy'), recent) self.assertTrue(res)
def test_recent_item(self): recent = set() importer._item_duplicate_check(self.lib, self._item_task(False, 'xxx', 'yyy'), recent) res = importer._item_duplicate_check(self.lib, self._item_task(False, 'xxx', 'yyy'), recent) self.assertTrue(res)
def test_duplicate_item_existing(self): res = importer._item_duplicate_check(self.lib, self._item_task(False, existing=True)) self.assertFalse(res)
def test_different_item_asis(self): res = importer._item_duplicate_check(self.lib, self._item_task(True, "xxx", "yyy")) self.assertFalse(res)
def test_duplicate_item_asis(self): res = importer._item_duplicate_check(self.lib, self._item_task(True)) self.assertTrue(res)
def test_different_item_apply(self): res = importer._item_duplicate_check(self.lib, self._item_task(False, 'xxx', 'yyy')) self.assertFalse(res)
def test_duplicate_item_existing(self): res = importer._item_duplicate_check( self.lib, self._item_task(False, existing=True)) self.assertFalse(res)
def test_different_item_asis(self): res = importer._item_duplicate_check( self.lib, self._item_task(True, 'xxx', 'yyy')) self.assertFalse(res)