def test_formats_builtin_function_name(self): self.assertEqual("%s.hex" % hex.__module__, format_dotted_name(hex))
def test_formats_function_name(self): self.assertEqual( "test.dummy.factory_function", format_dotted_name(dummy.factory_function))
def test_formats_builtin_type_name(self): self.assertEqual("%s.dict" % dict.__module__, format_dotted_name(dict))
def test_formats_module_name(self): self.assertEqual("test.dummy", format_dotted_name(dummy))
def test_formats_class_name(self): self.assertEqual( "test.dummy.ModuleClass", format_dotted_name(dummy.ModuleClass))
def test_formats_function_name(self): self.assertEqual("test.dummy.factory_function", format_dotted_name(dummy.factory_function))
def test_formats_class_name(self): self.assertEqual("test.dummy.ModuleClass", format_dotted_name(dummy.ModuleClass))