'If the value of an attribute cannot be set for some reason then
:py:class:`OpenSSL.crypto.Error` is raised.'

def test_setAttributeFailure(self):

    name = self._x509name()
    self.assertRaises(Error, setattr, name, 'O', ('x' * 512))
