'Check that abbreviations used in certificates correctly map to
complete names.'

def test_abbreviatingDistinguishedNames(self):

    self.assertEqual(sslverify.DN(CN='a', OU='hello'), sslverify.DistinguishedName(commonName='a', organizationalUnitName='hello'))
    self.assertNotEqual(sslverify.DN(CN='a', OU='hello'), sslverify.DN(CN='a', OU='hello', emailAddress='xxx'))
    dn = sslverify.DN(CN='abcdefg')
    self.assertRaises(AttributeError, setattr, dn, 'Cn', 'x')
    self.assertEqual(dn.CN, dn.commonName)
    dn.CN = 'bcdefga'
    self.assertEqual(dn.CN, dn.commonName)
