示例#1
0
 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)
示例#2
0
 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)
示例#3
0
 def test_duplicate_item_existing(self):
     res = importer._item_duplicate_check(self.lib, self._item_task(False, existing=True))
     self.assertFalse(res)
示例#4
0
 def test_different_item_asis(self):
     res = importer._item_duplicate_check(self.lib, self._item_task(True, "xxx", "yyy"))
     self.assertFalse(res)
示例#5
0
 def test_duplicate_item_asis(self):
     res = importer._item_duplicate_check(self.lib, self._item_task(True))
     self.assertTrue(res)
示例#6
0
 def test_different_item_apply(self):
     res = importer._item_duplicate_check(self.lib,
                                 self._item_task(False, 'xxx', 'yyy'))
     self.assertFalse(res)
示例#7
0
 def test_duplicate_item_existing(self):
     res = importer._item_duplicate_check(
         self.lib, self._item_task(False, existing=True))
     self.assertFalse(res)
示例#8
0
 def test_different_item_asis(self):
     res = importer._item_duplicate_check(
         self.lib, self._item_task(True, 'xxx', 'yyy'))
     self.assertFalse(res)
示例#9
0
 def test_duplicate_item_asis(self):
     res = importer._item_duplicate_check(self.lib, self._item_task(True))
     self.assertTrue(res)