def test_get_schedule_url(self): url_expected = settings.ATTRIBUTION_CONFIG.get('TIME_TABLE_URL'). \ format(settings.ATTRIBUTION_CONFIG.get('TIME_TABLE_NUMBER'), ACRONYM.lower()) self.assertEqual(tutor_charge.get_schedule_url(ACRONYM), url_expected)
def test_get_schedule_url_without_acronym(self): self.assertIsNone(tutor_charge.get_schedule_url(None))
def test_get_schedule_url(self): url_expected = settings.TIME_TABLE_URL.format(settings.TIME_TABLE_NUMBER, ACRONYM.lower()) self.assertEqual(tutor_charge.get_schedule_url(ACRONYM), url_expected)