def test_invisible_content(self):
     Content(route='a', show_in_navigation=False).save()
     NavigationOrder(route='a', order='0').save()
     navigation_move('a', 1)
    def test_no_nav_order(self):
        Content(route='a', show_in_navigation=True).save()
        navigation_move('a', 1)

        eq_(NavigationOrder.objects(route='a').first().order, 1)
 def test_no_content(self):
     NavigationOrder(route='a', order=0).save()
     navigation_move('a', 1)