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