python3 -Wa manage.py test

    1. from django.test import TestCase
    2. from django.test import Client
    3. from rest_framework import status
    4. from rest_framework.test import APIClient
    5. # from django.test.client import Client
    6. # Create your tests here.
    7. class TestClient(TestCase):
    8. def setUp(self):
    9. self.client = APIClient()
    10. def tearDown(self):
    11. pass
    12. def test_something(self):
    13. pass
    14. def test_view(self):
    15. # client = Client()
    16. pass