hy/tests/lang/test_kwargs.py

19 lines
330 B
Python
Raw Normal View History

2012-12-18 15:11:42 +01:00
import hy.lang.importer
def shim(*args, **kwargs):
return {"a": args,
"k": kwargs}
def test_kwargs_proper():
import tests.lang.kwargs
val = tests.lang.kwargs.kiwi()
assert val == {
"a": ('one', 'two'),
"k": {
"three": "three",
"four": "four"
}
}