def test_get_namespace_for_class_that_defines_namespace_var(): class FooHandler(core.FileHandler): namespace = 'foonamespace' assert core.get_namespace(FooHandler) == 'foonamespace'
def test_get_namespace_defaults_to_module_name(): assert core.get_namespace(TestHandler) == 'fakemodule'