def get_filter_data(trans_id): """ This method is used to get all the columns for data sorting dialog. Args: trans_id: unique transaction id """ return FilterDialog.get(*check_transaction_status(trans_id))
def runTest(self): expected_response = make_json_response(**self.expected_return_response) if self.type == 'get': result = FilterDialog.get(*self.input_parameters) self.assertEqual(result.status_code, expected_response.status_code) else: result = FilterDialog.save(*self.input_arg_parameters, **self.input_kwarg_parameters) self.assertEqual(result.status_code, expected_response.status_code)
def get_filter_data(trans_id): """ This method is used to get all the columns for data sorting dialog. Args: trans_id: unique transaction id """ status, error_msg, conn, trans_obj, session_ob = \ check_transaction_status(trans_id) return FilterDialog.get(status, error_msg, conn, trans_obj, session_ob)
def runTest(self): expected_response = make_json_response( **self.expected_return_response ) if self.type == 'get': result = FilterDialog.get(*self.input_parameters) self.assertEquals( result.status_code, expected_response.status_code ) else: result = FilterDialog.save( *self.input_arg_parameters, **self.input_kwarg_parameters ) self.assertEquals( result.status_code, expected_response.status_code )