def test_changed_obj(self): outlist = seq.unique([self, "abc", self, "def", "abc"]) self.assertEquals([self, "abc", "def"], outlist, "objects")
def test_unchanged(self): a = [1, 6, 3, 8] outlist = seq.unique(a) self.assertEquals(a, outlist, "unchanged")
def test_changed(self): outlist = seq.unique([1, 2, 1, 3, 2, 5]) self.assertEquals([1, 2, 3, 5], outlist, "changed")
def test_empty(self): outlist = seq.unique([]) self.assertEquals([], outlist, "empty")
def test_empty(self): outlist = seq.unique([]); self.assertEquals([], outlist, "empty")