Exemplo n.º 1
0
 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))
Exemplo n.º 3
0
def list(request):
    nav_selected = "badges"
    badges = all_badges(request.user)
    return render_to_response('badges/list.html', locals(), context_instance=RequestContext(request))
 def test_all_badges(self):
     badges = all_badges()
     self.failUnlessEqual(len(badges), 37)