def test_location_get_json(self): arg = Argument("foo", location="get_json") assert arg.location == "get_json"
def test_location_header(self): arg = Argument("foo", location="headers") assert arg.location == "headers"
def test_location_url_list(self): arg = Argument("foo", location=["url"]) assert arg.location == ["url"]
def test_location_url(self): arg = Argument("foo", location="url") assert arg.location == "url"
def test_dest(self): arg = Argument("foo", dest="foobar") assert arg.dest == "foobar"
def test_name(self): arg = Argument("foo") assert arg.name == "foo"