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

def test_fromLSHPrivateUnsupportedType(self):

    sexp = sexpy.pack([['private-key', ['bad-key', ['p', '2']]]])
    self.assertRaises(keys.BadKeyError, keys.Key.fromString, sexp)
