def METHOD_NAME(self):
    self.client.login(username="foo_user", password="123456")
    response = self.client.get(reverse("oauth2_provider:list"))
    self.assertEqual(response.status_code, 200)
    self.assertEqual(len(response.context["object_list"]), 3)