def test_all_badges(self): badges = all_badges() self.failUnlessEqual(len(badges), 37)
def list(request): nav_selected = "badges" badges = all_badges(request.user) return render_to_response('badges/list.html', locals(), context_instance=RequestContext(request))