def test_show_toolbar_debug_false(self): self.request.is_ajax = lambda: False self.assertFalse(show_toolbar(self.request))
def test_show_toolbar_ajax(self): self.request.is_ajax = lambda: True self.assertFalse(show_toolbar(self.request))