示例#1
0
 def test_location_get_json(self):
     arg = Argument("foo", location="get_json")
     assert arg.location == "get_json"
示例#2
0
 def test_location_header(self):
     arg = Argument("foo", location="headers")
     assert arg.location == "headers"
示例#3
0
 def test_location_url_list(self):
     arg = Argument("foo", location=["url"])
     assert arg.location == ["url"]
示例#4
0
 def test_location_url(self):
     arg = Argument("foo", location="url")
     assert arg.location == "url"
示例#5
0
 def test_dest(self):
     arg = Argument("foo", dest="foobar")
     assert arg.dest == "foobar"
示例#6
0
 def test_name(self):
     arg = Argument("foo")
     assert arg.name == "foo"