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"] )
def testEmpty(self): """ Test that empty list is handled correctly. """ scanners = [] self.assertEqual(list(NewerDuplicates.filtered(scanners)), [])