Lines Matching refs:test_args
25 def test_args(t, *args, **kwargs): function
57 test_args(t, "", "* missing argument a", status=1)
58 test_args(t, "1 2 : 3 : 4 : 5", "* extra argument 5", status=1)
59 test_args(t, "a b c1 c2 : d", "* extra argument c2", status=1)
62 test_args(t, "1 2 3 : 4", "a= 1 b= 2 c= 3 : d= 4 : e=")
63 test_args(t, "1 2 : 3", "a= 1 b= 2 c= : d= 3 : e=")
64 test_args(t, "1 2 : 3", "a= 1 b= 2 c= : d= 3 : e=")
65 test_args(t, "1 : 2", "a= 1 b= c= : d= 2 : e=")
68 test_args(t, "1", "* missing argument d", status=1)
69 test_args(t, "1 : 2 3", "a= 1 b= c= : d= 2 3 : e=")
70 test_args(t, "1 : 2 3 4", "a= 1 b= c= : d= 2 3 4 : e=")
73 test_args(t, "1 : 2 : 3", "a= 1 b= c= : d= 2 : e= 3")
74 test_args(t, "1 : 2 : 3 4", "a= 1 b= c= : d= 2 : e= 3 4")
75 test_args(t, "1 : 2 : 3 4 5", "a= 1 b= c= : d= 2 : e= 3 4 5")