':py:obj:`X509.set_subject` raises a :py:obj:`TypeError` if called with the wrong
number of arguments or an argument not of type :py:obj:`X509Name`.'

def test_set_subject_wrong_args(self):

    cert = X509()
    self.assertRaises(TypeError, cert.set_subject)
    self.assertRaises(TypeError, cert.set_subject, None)
    self.assertRaises(TypeError, cert.set_subject, cert.get_subject(), None)
