
from hashtable import HashTable
import pytest

def test_create():
    hashtable = HashTable()
    assert hashtable


def test_predictable_hash():
    hashtable = HashTable()
    initial = hashtable.hash('spam')
    secondary = hashtable.hash('spam')
    assert initial == secondary


def test_same_hash():
    hashtable = HashTable()
    initial = hashtable.hash('listen')
    secondary = hashtable.hash('silent')
    assert initial == secondary


def test_different_hash():
    hashtable = HashTable()
    initial = hashtable.hash('glisten')
    secondary = hashtable.hash('silent')
    assert initial != secondary

6f47132576aacbb34177a8cac43e55eb9df3e804
<mask token>


def test_same_hash():
    hashtable = HashTable()
    initial = hashtable.hash('listen')
    secondary = hashtable.hash('silent')
    assert initial == secondary


<mask token>

<mask token>


def test_same_hash():
    hashtable = HashTable()
    initial = hashtable.hash('listen')
    secondary = hashtable.hash('silent')
    assert initial == secondary


def test_different_hash():
    hashtable = HashTable()
    initial = hashtable.hash('glisten')
    secondary = hashtable.hash('silent')
    assert initial != secondary

<mask token>


def test_create():
    hashtable = HashTable()
    assert hashtable


<mask token>


def test_same_hash():
    hashtable = HashTable()
    initial = hashtable.hash('listen')
    secondary = hashtable.hash('silent')
    assert initial == secondary


def test_different_hash():
    hashtable = HashTable()
    initial = hashtable.hash('glisten')
    secondary = hashtable.hash('silent')
    assert initial != secondary

<mask token>


def test_create():
    hashtable = HashTable()
    assert hashtable


def test_predictable_hash():
    hashtable = HashTable()
    initial = hashtable.hash('spam')
    secondary = hashtable.hash('spam')
    assert initial == secondary


def test_same_hash():
    hashtable = HashTable()
    initial = hashtable.hash('listen')
    secondary = hashtable.hash('silent')
    assert initial == secondary


def test_different_hash():
    hashtable = HashTable()
    initial = hashtable.hash('glisten')
    secondary = hashtable.hash('silent')
    assert initial != secondary


from hashtable import HashTable
import pytest

def test_create():
    hashtable = HashTable()
    assert hashtable


def test_predictable_hash():
    hashtable = HashTable()
    initial = hashtable.hash('spam')
    secondary = hashtable.hash('spam')
    assert initial == secondary


def test_same_hash():
    hashtable = HashTable()
    initial = hashtable.hash('listen')
    secondary = hashtable.hash('silent')
    assert initial == secondary


def test_different_hash():
    hashtable = HashTable()
    initial = hashtable.hash('glisten')
    secondary = hashtable.hash('silent')
    assert initial != secondary
