def test_contribute_link(self): """Test /contribute link generation.""" e = EventFactory.create(start=START_DT, end=self.single_day_end) url = (settings.CONTRIBUTE_URL % {'callbackurl': (settings.SITE_URL + reverse('events_count_converted_visitors', kwargs={'slug': e.slug}))}) eq_(get_contribute_link(e), url)
def test_contribute_link(self): """Test /contribute link generation.""" e = Event.objects.get(slug='test-event') url = (settings.CONTRIBUTE_URL % {'callbackurl': (settings.SITE_URL + reverse('events_count_converted_visitors', kwargs={'slug': e.slug}))}) eq_(get_contribute_link(e), url)
def test_contribute_link(self): """Test /contribute link generation.""" e = EventFactory.create(start=START_DT, end=self.single_day_end) url = (settings.CONTRIBUTE_URL % { 'callbackurl': (settings.SITE_URL + reverse('events_count_converted_visitors', kwargs={'slug': e.slug})) }) eq_(get_contribute_link(e), url)