def test_create_submission_attach_files_finalize_and_access_wbtip(self): self.submission_desc = yield self.get_dummy_submission(self.dummyContext['id']) self.submission_desc = yield self.create_submission_with_files(self.submission_desc) wb_access_id, _, _ = yield authentication.login_wb(self.submission_desc['receipt']) # remind: return a tuple (serzialized_itip, wb_itip) wb_tip = yield wbtip.get_tip(wb_access_id, 'en') self.assertTrue('answers' in wb_tip)
def test_update_submission(self): self.submission_desc = yield self.get_dummy_submission(self.dummyContext['id']) self.submission_desc['answers'] = yield self.fill_random_answers(self.dummyContext['id']) self.submission_desc = yield self.create_submission(self.submission_desc) wb_access_id, _, _ = yield authentication.login_wb(self.submission_desc['receipt']) wb_tip = yield wbtip.get_tip(wb_access_id, 'en') self.assertTrue('answers' in wb_tip)
def test_update_submission(self): self.submission_desc = yield self.get_dummy_submission(self.dummyContext['id']) self.submission_desc['wb_steps'] = yield self.fill_random_fields(self.dummyContext['id']) self.submission_desc = yield self.create_submission(self.submission_desc) receipt = yield create_whistleblower_tip(self.submission_desc) wb_access_id = yield authentication.login_wb(receipt) wb_tip = yield wbtip.get_tip(wb_access_id, 'en') self.assertTrue('wb_steps' in wb_tip)
def test_create_submission_attach_files_finalize_and_access_wbtip(self): self.submission_desc = yield self.get_dummy_submission( self.dummyContext['id']) self.submission_desc = yield self.create_submission_with_files( self.submission_desc) wb_access_id, _, _ = yield authentication.login_wb( self.submission_desc['receipt']) # remind: return a tuple (serzialized_itip, wb_itip) wb_tip = yield wbtip.get_tip(wb_access_id, 'en') self.assertTrue('answers' in wb_tip)
def test_update_submission(self): self.submission_desc = yield self.get_dummy_submission( self.dummyContext['id']) self.submission_desc['answers'] = yield self.fill_random_answers( self.dummyContext['id']) self.submission_desc = yield self.create_submission( self.submission_desc) wb_access_id, _, _ = yield authentication.login_wb( self.submission_desc['receipt']) wb_tip = yield wbtip.get_tip(wb_access_id, 'en') self.assertTrue('answers' in wb_tip)
def wb_retrive_tip_data(self): self.wb_data = yield wbtip.get_tip(self.wb_tip_id, 'en') self.assertEqual(self.wb_data['answers'], self.submission_desc['answers'])
def wb_retrive_tip_data(self): self.wb_data = yield wbtip.get_tip(self.wb_tip_id, 'en') self.assertEqual(self.wb_data['wb_steps'], self.submission_desc['wb_steps'])