def test_get_email_header(self): html = get_header(["This is test", "orange"]) self.assertTrue('<span class="indicator indicator-orange"></span>' in html) self.assertTrue("<span>This is test</span>" in html) html = get_header(["This is another test"]) self.assertTrue("<span>This is another test</span>" in html) html = get_header("This is string") self.assertTrue("<span>This is string</span>" in html)
def test_get_email_header(self): html = get_header(['This is test', 'orange']) self.assertTrue('<span class="indicator indicator-orange"></span>' in html) self.assertTrue('<span>This is test</span>' in html) html = get_header(['This is another test']) self.assertTrue('<span>This is another test</span>' in html) html = get_header('This is string') self.assertTrue('<span>This is string</span>' in html)