def test_region(self): # Creation should not fail r = Region('region', 'region title') t = Template('base template', 'base.html', ( ('region', 'region title'), Region('region2', 'region2 title'), )) # I'm not sure whether this test tests anything at all self.assertEqual(r.key, t.regions[0].key) self.assertEqual(unicode(r), 'region title')
def test_region(self): # Creation should not fail r = Region("region", "region title") t = Template( "base template", "base.html", (("region", "region title"), Region("region2", "region2 title")), ) # I'm not sure whether this test tests anything at all self.assertEqual(r.key, t.regions[0].key) self.assertEqual(force_text(r), "region title")