def METHOD_NAME(self):
    """ranks lists excludes disabled accounts"""
    rank_user = create_test_user("Visible", "visible@te.com", is_active=False)
    for rank in Rank.objects.iterator():
        rank_user.rank = rank
        rank_user.save()
        rank_link = reverse("misago:users-rank", kwargs={"slug": rank.slug})
        response = self.client.get(rank_link)
        if rank.is_tab:
            self.assertEqual(response.status_code, 200)
            self.assertNotContains(response, rank_user.get_absolute_url())
        else:
            self.assertEqual(response.status_code, 404)