Ejemplo n.º 1
0
 def test_returns_nested_category_by_tree_path(self):
     c = _category_detail('nested-category/second-nested-category')
     self.assert_equals(self.category_nested_second, c['category'])
     self.assert_false(c['is_homepage'])
Ejemplo n.º 2
0
 def test_returns_home_page_with_no_args(self):
     c = _category_detail()
     self.assert_equals(self.category, c['category'])
     self.assert_true(c['is_homepage'])