def test_list_all_users_should_retrieve_all_users_and_reply_200(self):
    ' GET /api/v1/users should return all the users (or empty if no users found)\n            and return a successful status 200 OK.\n        '
    users = User.objects.all().order_by('id')
    request = self.factory.get(reverse('v1:user-list'))
    serializer = UserSerializer(users, many=True, context={'request': request})
    user_list_view = UserViewSet.as_view({'get': 'list'})
    response = user_list_view(request)
    self.assertEqual(len(self.users), len(response.data['results']))
    self.assertEqual(serializer.data, response.data['results'])
    self.assertEqual(status.HTTP_200_OK, response.status_code)
GET /api/v1/users should return all the users (or empty if no users found)
and return a successful status 200 OK.
def test_list_all_users_should_retrieve_all_users_and_reply_200(self):
    ' GET /api/v1/users should return all the users (or empty if no users found)\n            and return a successful status 200 OK.\n        '
    users = User.objects.all().order_by('id')
    request = self.factory.get(reverse('v1:user-list'))
    serializer = UserSerializer(users, many=True, context={'request': request})
    user_list_view = UserViewSet.as_view({'get': 'list'})
    response = user_list_view(request)
    self.assertEqual(len(self.users), len(response.data['results']))
    self.assertEqual(serializer.data, response.data['results'])
    self.assertEqual(status.HTTP_200_OK, response.status_code)