示例#1
0
 def test_method(self):
     self.assertEqual(standard_name_generator('auth.models.User.is_authenticated'),
                      'tests.test_auth.test_models:TestUser.test_is_authenticated')
示例#2
0
 def test_package(self):
     self.assertEqual(standard_name_generator('auth.models'),
                      'tests.test_auth.test_models')
示例#3
0
 def test_class(self):
     self.assertEqual(standard_name_generator('auth.models.User'),
                      'tests.test_auth.test_models:TestUser')
示例#4
0
 def test_module(self):
     self.assertEqual(standard_name_generator('auth'),
                      'tests.test_auth')