tests.py 279 Bytes
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)