def test_templates_addGreeting(self): text = templates.addGreeting(self.t) self.shouldIncludeGreeting(text)
def test_templates_addGreeting_23Client(self): text = templates.addGreeting(self.t, 23) self.assertSubstring('Hey', text)
def test_templates_addGreeting_noClient(self): text = templates.addGreeting(self.t, None) self.assertSubstring('Hello, friend!', text)
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)
def test_templates_addGreeting(self): text = templates.addGreeting(self.t, self.client.local) self.shouldIncludeGreeting(text)