def testGecodingParserPostFail(self):
     with app.test_request_context(data=dumps(INCORRECT_DATA), method=METHOD):
         with self.assertRaises(BadRequest):
             GeocodingParser.parsePostParameters()
 def testGecodingParserPostFail(self):
     with app.test_request_context(data=dumps(INCORRECT_DATA),
                                   method=METHOD):
         with self.assertRaises(BadRequest):
             GeocodingParser.parsePostParameters()
 def testGecodingParserPostDone(self):
     with app.test_request_context(data=dumps(DATA), method=METHOD):
         args = GeocodingParser.parsePostParameters()
         for el in DATA_ARR:
             self.assertEqual(args[el], TEST_VAL_PREFIX + el)
 def testGecodingParserPostDone(self):
     with app.test_request_context(data=dumps(DATA), method=METHOD):
         args = GeocodingParser.parsePostParameters()
         for el in DATA_ARR:
             self.assertEqual(args[el], TEST_VAL_PREFIX + el)