Exemple #1
0
 def test_liability_waiver_accepts_bracketed_words(self):
     event = EventFactory()
     event.liability_waiver = '{event} bears {no} responsibility for anything.'
     self.assertIn('{no}', event.get_liability_waiver())
Exemple #2
0
 def test_liability_waiver_subsitutes_org_name(self):
     event = EventFactory()
     self.assertIn(event.organization.name, event.get_liability_waiver())
Exemple #3
0
 def test_liability_waiver_subsitutes_event_name(self):
     event = EventFactory()
     event.liability_waiver = '{event} bears no responsibility for anything.'
     self.assertIn(event.name, event.get_liability_waiver())