def test_cmp(self): entry2 = IndexEntry(2, 'de', 'de', 0) self.assertEquals(self.entry, entry2)
def setUp(self): self.entry = IndexEntry(1, 'no', 'nn', 0)
def test_hash(self): entry2 = IndexEntry(2, 'de', 'de', 0) self.assertEquals(hash(self.entry), hash(entry2))
def test_remove_invalid(self): self.indexData() entry = IndexEntry(999, 'no', None, 0) self.assert_('no' not in self.index._index) self.index._remove(entry) self.assert_('no' not in self.index._index)