':py:obj:`X509.set_version` sets the certificate version number.
:py:obj:`X509.get_version` retrieves it.'

def test_version(self):

    cert = X509()
    cert.set_version(1234)
    self.assertEquals(cert.get_version(), 1234)
