def test_missing_naming_system(self): hn = Hostname.from_dict({'hostname_value': "www.example2.com"}) self.assertTrue("www.example2.com" in hn.to_xml())