Example #1
0
 def test_templates_addGreeting(self):
     text = templates.addGreeting(self.t)
     self.shouldIncludeGreeting(text)
Example #2
0
 def test_templates_addGreeting_23Client(self):
     text = templates.addGreeting(self.t, 23)
     self.assertSubstring('Hey', text)
Example #3
0
 def test_templates_addGreeting_noClient(self):
     text = templates.addGreeting(self.t, None)
     self.assertSubstring('Hello, friend!', text)
Example #4
0
 def test_templates_addGreeting_withWelcome(self):
     text = templates.addGreeting(self.t, self.client.local, welcome=True)
     self.shouldIncludeGreeting(text)
     self.assertSubstring('Welcome to BridgeDB!', text)
Example #5
0
 def test_templates_addGreeting(self):
     text = templates.addGreeting(self.t, self.client.local)
     self.shouldIncludeGreeting(text)