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