def test_ZObjects_import_a_tags(self): props = Domain._parse_a_tags(self.simple_domain_dict['domain']) self.assertIsInstance(props, dict) # 53 is the number of unique "n" keys in the sample domain. self.assertEqual(len(props), 53) # Just check one of the <a> tags self.assertEqual(props['zimbraAuthMech'], 'zimbra')
def test_ZObjects_import_a_tags(self): props = Domain._parse_a_tags(self.simple_domain_dict["domain"]) self.assertIsInstance(props, dict) # 53 is the number of unique "n" keys in the sample domain. self.assertEqual(len(props), 53) # Just check one of the <a> tags self.assertEqual(props["zimbraAuthMech"], "zimbra")
def test_ZObjects_import_a_tags_multivalue(self): props = Domain._parse_a_tags(self.simple_domain_dict['domain']) self.assertIsInstance(props['objectClass'], list) self.assertEqual( props['objectClass'], ['dcObject', 'organization', 'zimbraDomain', 'amavisAccount'])
def test_ZObjects_import_a_tags_multivalue(self): props = Domain._parse_a_tags(self.simple_domain_dict["domain"]) self.assertIsInstance(props["objectClass"], list) self.assertEqual(props["objectClass"], ["dcObject", "organization", "zimbraDomain", "amavisAccount"])
def test_ZObjects_import_a_tags_multivalue(self): props = Domain._parse_a_tags(self.simple_domain_dict['domain']) self.assertIsInstance(props['objectClass'], list) self.assertEqual( props['objectClass'], ['dcObject', 'organization', 'zimbraDomain', 'amavisAccount'])