def test_sort_can_be_changed(self): view = ContentsView(self.folder, TestRequest()) self.failIf(view.can_sort_be_changed())
def test_sort_can_be_changed(self): view = ContentsView(self.folder, TestRequest()) view._getNavigationVars = lambda: {} self.assertFalse(view.can_sort_be_changed())