def constituencies_with_more_than_rss(request,
                                       volunteers=1):
    current_site = Site.objects.get_current()
    constituencies = models.filter_where_customuser_more_than(volunteers)
    context = {'constituencies': constituencies}
    context['site'] = current_site
    return render_with_context(request,
                              'geo.rss',
                              context,
                              mimetype="application/atom+xml")
    def test_filter_constituency_by_user(self):
        empty = models.filter_where_customuser_fewer_than(1)
        self.assertEqual(len(empty), 2)
        # add an inactive user.  Shouldn't make a difference
        self.users[2].constituencies.add(self.constituencies[0])
        empty = models.filter_where_customuser_fewer_than(1)
        
        self.assertEqual(len(empty), 2)
        
        self.users[1].constituencies.add(self.constituencies[0])
        empty = models.filter_where_customuser_fewer_than(1)
        self.assertEqual(len(empty), 1)

        more = models.filter_where_customuser_more_than(0)
        self.assertEqual(len(more), 1)