""" >>> from ellington.categories.models import * >>> news = Hierarchy.objects.get(slug="news") >>> news.get_all_categories() [, , , , ] >>> news.get_toplevel_categories() [, ] >>> weather = news.get_category_from_slug("/weather") >>> weather >>> from django.test import Client >>> c = Client() >>> r = c.get('/categories/') >>> r.context[0]['object_list'] [] >>> r = c.get('/categories/news/') >>> r.context[0]['object'] """ __fixtures__ = ['categories.yaml']