Example #1
0
def test_admin_tree():
    from sitetree.admin import TreeAdmin
    from sitetree.models import Tree

    admin = TreeAdmin(Tree, site)
    urls = admin.get_urls()

    assert len(urls) > 0
def test_admin_tree():
    from sitetree.admin import TreeAdmin
    from sitetree.models import Tree

    admin = TreeAdmin(Tree, site)
    urls = admin.get_urls()

    assert len(urls) > 0
Example #3
0
 def test_tree_admin(self):
     admin = TreeAdmin(Tree, site)
     urls = admin.get_urls()
     self.assertIn('tree_id', urls[1]._regex)
Example #4
0
 def test_tree_admin(self):
     admin = TreeAdmin(Tree, site)
     urls = admin.get_urls()
     self.assertIn('tree_id', urls[1]._regex)