def test_missing_keyword_argument_value():
 try:
  can_compile(u'((fn [x] x) :x)')
 except HyTypeError as e:
  assert (e.message == u'Keyword argument :x needs a value.')
 else:
  assert False

def test_missing_keyword_argument_value ( ) : try : can_compile ( u'((fn [x] x) :x)' ) except HyTypeError as e : assert ( e . message == u'Keyword argument :x needs a value.' ) else : assert False
ensure the compiler chokes on missing keyword argument values .