Example #1
0
 def test_nested_modules(self):
     self.assertEqual(
         'tests.general_test.FullyQualifiedTypeNameTest',
         general.fq_typename(self))
Example #2
0
 def test_builtin_objects_keyfunc(self):
     for obj in self.objects:
         expected = (general.fq_typename(obj), str(obj))
         actual = general.universal_sort_key(obj, key=str)
         self.assertEqual(expected, actual)
Example #3
0
 def test_builtin_types(self):
     for name, obj in self.names_objects:
         self.assertEqual(name, general.fq_typename(type(obj)))