Example #1
0
 def test_query_exists_in_hash_entry(self):
     hash_entry = HashEntry(3, "lilian")
     hash_entry.append("nina")
     self.assertTrue(hash_entry.query("lilian"))
     self.assertTrue(hash_entry.query("nina"))
 def test_query_exists_in_hash_entry(self):
     hash_entry = HashEntry(3, "lilian")
     hash_entry.append("nina")
     self.assertTrue(hash_entry.query("lilian"))
     self.assertTrue(hash_entry.query("nina"))
Example #3
0
 def test_append_jan_to_hash_entry(self):
     hash_entry = HashEntry(2, "tati")
     hash_entry.append("jan")
     self.assertEquals(hash_entry.key, 2)
     self.assertEquals(hash_entry.value_list, ["tati", "jan"])
 def test_append_jan_to_hash_entry(self):
     hash_entry = HashEntry(2, "tati")
     hash_entry.append("jan")
     self.assertEquals(hash_entry.key, 2)
     self.assertEquals(hash_entry.value_list, ["tati", "jan"])