@@ -0,0 +1,1124 @@
+from django.test import Client, TestCase%0A%0A%0Aclass WeekdayApiTest(TestCase):%0A    %22%22%22Tests for Weekday API.%22%22%22%0A%0A    def setUp(self):%0A        self.client = Client()%0A        self.endpoint = '/api'%0A%0A    def create_weekday(self, name):%0A        query = '''%0A                mutation%7B%0A                    createWeekday(input: %7Bname: %22%25s%22%7D)%7B%0A                        user%7B%0A                            id,%0A                            originalId,%0A                            name%0A                        %7D%0A                    %7D%0A                %7D%0A                ''' %25 (name)%0A%0A        return self.client.post(self.endpoint, %7B'query': query%7D).json()%0A%0A    def test_creation_of_weekday_object(self):%0A        response = self.create_weekday('tuesday')%0A%0A        expected = %7B%0A            'createWeekday': %7B%0A                'weekday': %7B%0A                    'id': response%5B'data'%5D%5B'createWeekday'%5D%5B'weekday'%5D%5B'id'%5D,%0A                    'originalId': response%5B'data'%5D%5B'createWeekday'%5D%5B'weekday'%5D%5B'originalId'%5D,%0A                    'username': 'tuesday'%0A                %7D%0A            %7D%0A        %7D%0A%0A        self.assertEqual(expected, response%5B'data'%5D)%0A

Set up test for weekday api