def test_fill_form_initial(self): session = { 'not_fit_test': 'not_fit_test', FIT_QUIZ_SESSION_DATA_PREFIX + 'test': 'fit_test', } initial = {} InquiryApplyWizard.fill_form_initial(session, initial) self.assertEqual(initial, {'test': 'fit_test'}) initial = {'something': 'something'} InquiryApplyWizard.fill_form_initial(session, initial) self.assertEqual(initial, { 'test': 'fit_test', 'something': 'something', })
def test_fill_form_initial_empty(self): session = {} initial = {} InquiryApplyWizard.fill_form_initial(session, initial) self.assertEqual(initial, {})