def test_templatetag(self): s = Setting() s.site_name = "Example name" s.save() template = Template( '{% load setting_tags %}{% site_setting "site_name" %}') self.assertEquals(template.render(Context({})), "Example name")
def test_templatetag(self): s = Setting() s.site_name = "Example name" s.save() template = Template('{% load setting_tags %}{% site_setting "site_name" %}') self.assertEquals(template.render(Context({})), "Example name")
def test_setting_addition(self): s = Setting() s.site_name = "Example name" s.save() self.assertEquals(get_setting('site_name',''), "Example name")
def test_setting_addition(self): s = Setting() s.site_name = "Example name" s.save() self.assertEquals(get_setting('site_name', ''), "Example name")