This commit is contained in:
@@ -3,7 +3,7 @@ __email__ = 'remizoffalex@mail.ru'
|
||||
|
||||
import unittest
|
||||
|
||||
from router.dispatcher import Dispacher
|
||||
from router.dispatcher import Dispatcher
|
||||
|
||||
|
||||
def comparator(params):
|
||||
@@ -16,7 +16,7 @@ def action(params):
|
||||
|
||||
class TestDispatcher(unittest.TestCase):
|
||||
def test_dispatcher(self):
|
||||
dispacher = Dispatcher()
|
||||
dispatcher = Dispatcher()
|
||||
params ={'param': True}
|
||||
dispatcher.register('name', comparator, action)
|
||||
result = dispatcher(params)
|
||||
|
||||
Reference in New Issue
Block a user