# Path: app/api/tests/utils.py
# def obtain_api_key(client):
# def create_admin_account():
# def create_normal_user_acount():
# def make_request(client, query, method='GET'):


from django.test import Client, TestCase
from .utils import (admin_test_credentials, create_admin_account,
                    make_request,)
        }

        self.assertEqual(expected, make_request(self.client, query))

    def test_retrieval_of_multiple_user_objects_filter_by_username(self):
        new_users = self.create_multiple_users()

        query = 'query {users(username_Icontains: "H") {edges{node{username}}}}'

        expected = {
            'users': [
                {
                    'username': new_users[0][0]
                },
                {
                    'username': new_users[1][0]
                }
            ]
        }

        self.assertEqual(expected, make_request(self.client, query))

    def test_retrieval_of_multiple_user_objects_filter_by_is_staff(self):
        self.create_multiple_users()

        query = 'query {users(isStaff: true) {edges{node{username}}}}'

        expected = {
            'users': [
                {

# Path: app/api/tests/utils.py
# def obtain_api_key(client):
# def create_admin_account():
# def create_normal_user_acount():
# def make_request(client, query, method='GET'):


# Path: app/api/tests/test_user_api.py
from django.test import Client, TestCase
from .utils import (admin_test_credentials, create_admin_account,
                    make_request,)

        }

        self.assertEqual(expected, make_request(self.client, query))

    def test_retrieval_of_multiple_user_objects_filter_by_username(self):
        new_users = self.create_multiple_users()

        query = 'query {users(username_Icontains: "H") {edges{node{username}}}}'

        expected = {
            'users': [
                {
                    'username': new_users[0][0]
                },
                {
                    'username': new_users[1][0]
                }
            ]
        }

        self.assertEqual(expected, make_request(self.client, query))

    def test_retrieval_of_multiple_user_objects_filter_by_is_staff(self):
        self.create_multiple_users()

        query = 'query {users(isStaff: true) {edges{node{username}}}}'

        expected = {
            'users': [
                {

                    'username': admin_test_credentials[0]