':py:class:`X509Extension` raises something if it is passed a bad extension
name or value.'

def test_invalid_extension(self):

    self.assertRaises(Error, X509Extension, b('thisIsMadeUp'), False, b('hi'))
    self.assertRaises(Error, X509Extension, b('basicConstraints'), False, b('blah    blah'))
    self.assertRaises(Error, X509Extension, b('proxyCertInfo'), True, b('language:id-ppl-anyLanguage,pathlen:1,policy:text:AB'))
