':py:obj:`X509` takes no arguments and returns an instance of :py:obj:`X509Type`.'

def test_construction(self):

    certificate = X509()
    self.assertTrue(isinstance(certificate, X509Type), ('%r    is    of    type    %r,    should    be    %r' % (certificate, type(certificate), X509Type)))
    self.assertEqual(type(X509Type).__name__, 'type')
    self.assertEqual(type(certificate).__name__, 'X509')
    self.assertEqual(type(certificate), X509Type)
    self.assertEqual(type(certificate), X509)
