def test_random_collision():
  ht = HashTable()
  collision_key = ht.find_collision_key('babies')
  assert (collision_key != 'babies') and (ht.hash('babies') == ht.hash(collision_key))
def test_hash_a_key_to_an_in_range_value():
  hash_table = HashTable()
  assert hash_table.hash('8000')< hash_table.size
def test_hash_is_in_range():
  ht = HashTable()
  index = ht.hash('babies')
  assert 0 <= index <= 1024