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'])
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'])