def test_module_of_for_test_methods(self): tmeth = TestMethod('tmeth', parent=self.tclass) assert_equal(self.module, module_of(tmeth))
def test_module_of_for_method(self): meth = Method('meth', klass=self.klass) assert_equal(self.module, module_of(meth))
def test_module_of_for_test_classes(self): assert_equal(self.module, module_of(self.tclass))
def test_module_of_for_module(self): assert_equal(self.module, module_of(self.module))
def test_module_of_for_function(self): fun = Function('fun', module=self.module) assert_equal(self.module, module_of(fun))