Esempio n. 1
0
 def testEjection(self):
     """ Test that appropriate scanners are ejected. """
     scanners = [1, 2, 3, "a", "b", "c", 1]
     self.assertEqual(
        list(NewerDuplicates.filtered(scanners)),
        [1, 2, 3, "a", "b", "c"]
     )
Esempio n. 2
0
 def testEmpty(self):
     """ Test that empty list is handled correctly. """
     scanners = []
     self.assertEqual(list(NewerDuplicates.filtered(scanners)), [])