1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
django-client-reverse/django_client_reverse/tests.py

12 lines
338 B
Python
Raw Normal View History

2015-12-09 22:02:27 +00:00
from rest_framework.test import APITestCase
from django.core.urlresolvers import reverse
class ReverserTestCase(APITestCase):
def setUp(self):
super().setUp()
def test_thing(self):
2015-12-10 14:02:38 +00:00
response = self.client.post(reverse('reverser'), data={'ident': 'tests:root'})
self.assertEqual(response.data, '/tests/')