from unittest import TestCase, main
from hash_table import HashTable


class HashTest(TestCase):
    def setUp(self):
        self.test1 = HashTable(10)

    def test_type(self):
        self.assertIsInstance(self.test1, HashTable)

    def test_add(self):
        self.assertEqual(self.test1.insert("key", "var"), None)

    def test_search(self):
        self.test1.insert("key", "val")
        self.assertEqual(self.test1.search("key"), "val")


if __name__ == "__main__":
    main()

c1b81a2c1eb29c2d31e7bb6d71da688d962b2c81
<mask token>


class HashTest(TestCase):
    <mask token>

    def test_type(self):
        self.assertIsInstance(self.test1, HashTable)

    def test_add(self):
        self.assertEqual(self.test1.insert('key', 'var'), None)
    <mask token>


<mask token>

<mask token>


class HashTest(TestCase):
    <mask token>

    def test_type(self):
        self.assertIsInstance(self.test1, HashTable)

    def test_add(self):
        self.assertEqual(self.test1.insert('key', 'var'), None)

    def test_search(self):
        self.test1.insert('key', 'val')
        self.assertEqual(self.test1.search('key'), 'val')


<mask token>

<mask token>


class HashTest(TestCase):

    def setUp(self):
        self.test1 = HashTable(10)

    def test_type(self):
        self.assertIsInstance(self.test1, HashTable)

    def test_add(self):
        self.assertEqual(self.test1.insert('key', 'var'), None)

    def test_search(self):
        self.test1.insert('key', 'val')
        self.assertEqual(self.test1.search('key'), 'val')


if __name__ == '__main__':
    main()

from unittest import TestCase, main
from hash_table import HashTable


class HashTest(TestCase):

    def setUp(self):
        self.test1 = HashTable(10)

    def test_type(self):
        self.assertIsInstance(self.test1, HashTable)

    def test_add(self):
        self.assertEqual(self.test1.insert('key', 'var'), None)

    def test_search(self):
        self.test1.insert('key', 'val')
        self.assertEqual(self.test1.search('key'), 'val')


if __name__ == '__main__':
    main()

from unittest import TestCase, main
from hash_table import HashTable


class HashTest(TestCase):
    def setUp(self):
        self.test1 = HashTable(10)

    def test_type(self):
        self.assertIsInstance(self.test1, HashTable)

    def test_add(self):
        self.assertEqual(self.test1.insert("key", "var"), None)

    def test_search(self):
        self.test1.insert("key", "val")
        self.assertEqual(self.test1.search("key"), "val")


if __name__ == "__main__":
    main()
