def test_nested_modules(self): self.assertEqual( 'tests.general_test.FullyQualifiedTypeNameTest', general.fq_typename(self))
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)
def test_builtin_types(self): for name, obj in self.names_objects: self.assertEqual(name, general.fq_typename(type(obj)))