django.test.Client django.test.Clientfrom django.test import Clientc = Client()r = c.get('/api/test/?db=db01')r = c.get('/api/test/', data={'db': 'db01'})r = c.post('/api/test/', data={'db': 'db01'})print(r.content)print(r.json())