':py:obj:`X509.set_version` raises :py:obj:`TypeError` if invoked with the wrong number
of arguments or an argument not of type :py:obj:`int`.'

def test_set_version_wrong_args(self):

    cert = X509()
    self.assertRaises(TypeError, cert.set_version)
    self.assertRaises(TypeError, cert.set_version, None)
    self.assertRaises(TypeError, cert.set_version, 1, None)
