Ejemplo n.º 1
0
 def class_oid(cls):
     return utils.create_hash(utils.qualified_name(cls))
Ejemplo n.º 2
0
 def class_oid(cls):
     """
     Obfuscated class id
     :return: str
     """
     return utils.create_hash(utils.qualified_name(cls).encode('utf-8'))
Ejemplo n.º 3
0
 def __init__(self, view):
     from django.apps import apps
     app = apps.get_containing_app_config(utils.qualified_name(view))
     super(ViewMeta, self).__init__(app, view.__name__)
     self.view = view
Ejemplo n.º 4
0
 def test_function(self):
     name = utils.qualified_name(random_function)
     self.assertIsNotNone(name)
Ejemplo n.º 5
0
 def test_class(self):
     name = utils.qualified_name(TestQualifiedName)
     self.assertIsNotNone(name)
Ejemplo n.º 6
0
 def test_unbound_method(self):
     name = utils.qualified_name(self.test_method)
     self.assertIsNotNone(name)
Ejemplo n.º 7
0
 def class_oid(cls):
     """
     Obfuscated class id
     :return: str
     """
     return utils.create_hash(utils.qualified_name(cls))
Ejemplo n.º 8
0
 def test_class(self):
     name = utils.qualified_name(TestQualifiedName)
     self.assertIsNotNone(name)
Ejemplo n.º 9
0
 def test_function(self):
     name = utils.qualified_name(random_function)
     self.assertIsNotNone(name)
Ejemplo n.º 10
0
 def test_unbound_method(self):
     name = utils.qualified_name(self.test_method)
     self.assertIsNotNone(name)