Exemplo n.º 1
0
 def test_unknown_parameter_on_put(self):
     with self.generated_url() as url:
         error = e.unknown_parameters('invalid')
         response = client.put(url, invalid='invalidvalue')
         response.assert_match(400, error)
Exemplo n.º 2
0
 def test_unknown_parameter_on_put(self):
     with self.generated_url() as url:
         error = e.unknown_parameters('invalid')
         response = client.put(url, {'invalid': 'invalidvalue'})
         response.assert_match(400, error)
Exemplo n.º 3
0
    def test_unknown_parameter_on_post(self):
        error = e.unknown_parameters('invalid')
        response = self.post_resource({'invalid': 'invalid'})

        response.assert_match(400, error)
Exemplo n.º 4
0
    def test_unknown_parameter_on_post(self):
        error = e.unknown_parameters('invalid')
        response = self.post_resource({'invalid': 'invalid'})

        response.assert_match(400, error)