Example #1
0
 def test_query_doesnt_exist_in_hash_entry(self):
     hash_entry = HashEntry(4, "roberto")
     self.assertFalse(hash_entry.query("onofre"))
 def test_query_doesnt_exist_in_hash_entry(self):
     hash_entry = HashEntry(4, "roberto")
     self.assertFalse(hash_entry.query("onofre"))
Example #3
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"))