'Attempting to set a non-:py:data:`str` attribute name on an :py:class:`X509NameType`
instance causes :py:exc:`TypeError` to be raised.'

def test_onlyStringAttributes(self):

    name = self._x509name()
    self.assertRaises(TypeError, setattr, name, None, 'hello')
    self.assertRaises(TypeError, setattr, name, 30, 'hello')
