tests.py 279 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 from django.test import TestCase from rest_framework.test import APIClient # Create your tests here. class APITest(TestCase): def test_upload_file(self): client=APIClient() response=client.post('/files/',{}) self.assertEqual(response.status_code,200)