'C{BadKeyError} exception is raised when public key has an unknown
type.'

def test_fromLSHPublicUnsupportedType(self):

    sexp = sexpy.pack([['public-key', ['bad-key', ['p', '2']]]])
    self.assertRaises(keys.BadKeyError, keys.Key.fromString, data=(('{' + base64.encodestring(sexp)) + '}'))
