'Calling :py:obj:`OpenSSL.crypto.Revoked.set_reason` with other than
one argument, or an argument which isn\'t a valid reason,
results in :py:obj:`TypeError` or :py:obj:`ValueError` being raised.'

def test_set_reason_wrong_arguments(self):

    revoked = Revoked()
    self.assertRaises(TypeError, revoked.set_reason, 100)
    self.assertRaises(ValueError, revoked.set_reason, b('blue'))
