def test_getnamedargs(): """py.test for getnamedargs""" result = dict(a=1, b=2, c=3) assert result == modeleditor.getnamedargs(a=1, b=2, c=3) assert result == modeleditor.getnamedargs(dict(a=1, b=2, c=3)) assert result == modeleditor.getnamedargs(dict(a=1, b=2), c=3) assert result == modeleditor.getnamedargs(dict(a=1), c=3, b=2)