1d113da45a
this makes more sense than (potentially) adding a whole bunch of methods to the app handler. also fix entry point for app provider, per wj changes
21 lines
499 B
Python
21 lines
499 B
Python
# -*- coding: utf-8; -*-
|
|
|
|
from unittest import TestCase
|
|
|
|
from wuttjamaican.conf import WuttaConfig
|
|
|
|
from wuttaweb import handler as mod
|
|
from wuttaweb.menus import MenuHandler
|
|
|
|
|
|
class TestWebHandler(TestCase):
|
|
|
|
def setUp(self):
|
|
self.config = WuttaConfig()
|
|
self.app = self.config.get_app()
|
|
self.handler = mod.WebHandler(self.config)
|
|
|
|
def test_menu_handler_default(self):
|
|
menus = self.handler.get_menu_handler()
|
|
self.assertIsInstance(menus, MenuHandler)
|