def test_xlist_count_dupes_string_twodupe(self): xl = XList(['test', 'test', 'another', 'another', 'last', 'last'], {'first_attr': 1}) dupes = xl.count_duplicates() self.assertEqual(dupes, 3)
def test_xlist_count_dupes_int_twodupe(self): xl = XList([1, 2, 2, 3, 3, 3], {'first_attr': 1}) dupes = xl.count_duplicates() self.assertEqual(dupes, 3)