':py:class:`X509Name` creates a new :py:class:`X509NameType` instance with all the same
attributes as an existing :py:class:`X509NameType` instance when called with
one.'

def test_copy(self):

    name = self._x509name(commonName='foo', emailAddress='bar@example.com')
    copy = X509Name(name)
    self.assertEqual(copy.commonName, 'foo')
    self.assertEqual(copy.emailAddress, 'bar@example.com')
    copy.commonName = 'baz'
    self.assertEqual(name.commonName, 'foo')
    name.emailAddress = 'quux@example.com'
    self.assertEqual(copy.emailAddress, 'bar@example.com')
