Пример #1
0
    def test_get_qualified_function_name_with_class(self):
        def f1():
            pass

        self.assertEqual(_get_qualified_function_name(f1, cls=TestAppCache),
                         'tests.test_app_cache.TestAppCache.f1')
Пример #2
0
    def test_get_qualified_function_name_with_class(self):
        def f1(): pass

        self.assertEqual(_get_qualified_function_name(f1, cls=TestAppCache),
                         'tests.test_app_cache.TestAppCache.f1')
Пример #3
0
 def test_get_qualified_function_name(self):
     self.assertEqual(_get_qualified_function_name(f1),
                      'tests.test_app_cache.f1')
Пример #4
0
 def test_get_qualified_function_name(self):
     self.assertEqual(_get_qualified_function_name(f1), 'tests.test_app_cache.f1')