def test_table_one_dup(self): self.a.insert(3) self.a.insert(2) self.a.insert(6) self.a.insert(2) self.a.insert(1) rmdups.remove_with_table(self.a) self.a.delete(2) self.assertEqual(self.a.search(2), None)
def test_table_no_dup(self): self.a.insert(4) self.a.insert(2) self.a.insert(3) rmdups.remove_with_table(self.a)