# 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,)
                    'customAuthId': 'abcd'
                }
            }
        }

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

    def test_deletion_of_user_object(self):
        # Delete with valid id
        query = '''
            mutation{
                deleteUser(input: {id: "%s"}){
                    user{
                        username
                    }
                }
            }
        ''' % (self.first_user['id'])

        expected = {
            'user': {
                'username': self.first_user['username']
            }
        }

        self.assertEqual(expected, make_request(self.client, query, 'POST'))
        self.assertEqual({'user': None}, self.retrieve_user(self.first_user['id']))

        # Delete with invalid id
        query = '''

# 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,)

                    'customAuthId': 'abcd'
                }
            }
        }

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

    def test_deletion_of_user_object(self):
        # Delete with valid id
        query = '''
            mutation{
                deleteUser(input: {id: "%s"}){
                    user{
                        username
                    }
                }
            }
        ''' % (self.first_user['id'])

        expected = {
            'user': {
                'username': self.first_user['username']
            }
        }

        self.assertEqual(expected, make_request(self.client, query, 'POST'))
        self.assertEqual({'user': None}, self.retrieve_user(self.first_user['id']))

        # Delete with invalid id
        query = '''

            mutation{