from django.test import TestCase # Create your tests here. from rest_framework import status from rest_framework.test import APITestCase class AccountTests(APITestCase): def test_create_account(self): """ Ensure we can create a new account object. """ url = '/test/' response = self.client.get(url, format='json') self.assertEqual(response.status_code, status.HTTP_200_OK)