'An :py:class:`OpenSSL.crypto.X509Name` from an
:py:class:`OpenSSL.crypto.X509` instance loaded from a file can have a
NUL byte in the value of one of its attributes.'

def test_load_nul_byte_attribute(self):

    cert = load_certificate(FILETYPE_PEM, nulbyteSubjectAltNamePEM)
    subject = cert.get_subject()
    self.assertEqual('null.python.org\x00example.org', subject.commonName)
