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