':py:obj:`X509ReqType.set_version` sets the X.509 version of the certificate
request.  :py:obj:`X509ReqType.get_version` returns the X.509 version of
the certificate request.  The initial value of the version is 0.'

def test_version(self):

    request = X509Req()
    self.assertEqual(request.get_version(), 0)
    request.set_version(1)
    self.assertEqual(request.get_version(), 1)
    request.set_version(3)
    self.assertEqual(request.get_version(), 3)
