':py:obj:`X509.get_subject` returns an :py:obj:`X509Name` instance.'

def test_get_subject(self):

    cert = load_certificate(FILETYPE_PEM, self.pemData)
    subj = cert.get_subject()
    self.assertTrue(isinstance(subj, X509Name))
    self.assertEquals(subj.get_components(), [(b('C'), b('US')), (b('ST'), b('IL')), (b('L'), b('Chicago')), (b('O'), b('Testing')), (b('CN'), b('Testing    Root    CA'))])
