def test_get_phd_data(self):
     thesis_title = export_utils_pdf.format_data(
         self.assistant.thesis_title,
         _('Title (provisional) of the thesis'))
     phd_inscription_date = export_utils_pdf.format_data(
         self.assistant.phd_inscription_date,
         _('Date of doctoral enrollment'))
     confirmation_test_date = export_utils_pdf.format_data(
         self.assistant.confirmation_test_date,
         _('Programmed date of confirmation test'))
     succed_confirmation_test_date = export_utils_pdf.format_data(
         self.assistant.succeed_confirmation_test_date,
         _('Date of succeeded confirmation test'))
     thesis_date = export_utils_pdf.format_data(
         self.assistant.thesis_date,
         _('Date of defense of thesis (if already known)'))
     expected_phd_date = export_utils_pdf.format_data(
         self.assistant.expected_phd_date,
         _('Scheduled date of registration'))
     inscription = export_utils_pdf.format_data(
         dict(assistant_phd_inscription.PHD_INSCRIPTION_CHOICES).get(
             self.assistant.inscription, ''),
         _('Enrolled in the Ph.D. program'))
     remark = export_utils_pdf.format_data(self.assistant.remark,
                                           _('Remark'))
     self.assertEqual(
         inscription + phd_inscription_date + expected_phd_date +
         confirmation_test_date + succed_confirmation_test_date +
         thesis_title + thesis_date + remark,
         export_utils_pdf.get_phd_data(self.assistant))
Exemple #2
0
 def test_get_phd_data(self):
     thesis_title = export_utils_pdf.format_data(
         self.assistant.thesis_title, 'thesis_title')
     phd_inscription_date = export_utils_pdf.format_data(
         self.assistant.phd_inscription_date, 'phd_inscription_date')
     confirmation_test_date = export_utils_pdf.format_data(
         self.assistant.confirmation_test_date, 'confirmatory_test_date')
     thesis_date = export_utils_pdf.format_data(self.assistant.thesis_date,
                                                'thesis_defence_date')
     expected_phd_date = export_utils_pdf.format_data(
         self.assistant.expected_phd_date, 'expected_registering_date')
     inscription = export_utils_pdf.format_data(
         _(self.assistant.inscription)
         if self.assistant.inscription else None, 'registered_phd')
     remark = export_utils_pdf.format_data(self.assistant.remark, 'remark')
     self.assertEqual(inscription + phd_inscription_date + expected_phd_date + confirmation_test_date + thesis_title \
            + thesis_date + remark, export_utils_pdf.get_phd_data(self.assistant))