from unittest import TestCase
from kobin.routes import Router


class RouterTest(TestCase):
    def setUp(self):
        self.router = Router()

    def test_add_func_when_input_static(self):
        def target_func(): pass
        self.router.add('/user/', 'GET', target_func)

        actual = self.router.static
        self.assertIn('GET', actual)
        self.assertIn('/user/', actual['GET'])
        expected_tuple = (target_func, None)
        self.assertTupleEqual(actual['GET']['/user/'], expected_tuple)

Add Test of static routing
Add Test of static routing
