Skip to content

Commit 260bac9

Browse files
committed
Updated some tests to match api views refactoring.
- Legacy-Id: 14295
1 parent 526003f commit 260bac9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

ietf/utils/tests_restapi.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ def list_recursively(self, resource, format):
3333

3434
def test_json_api_explore(self):
3535
make_test_data()
36-
apitop = reverse('ietf.api.top_level')
36+
apitop = reverse('ietf.api.views.top_level')
3737
self.list_recursively('%s/'%apitop, format='json')
3838

3939
def test_xml_api_explore(self):
40-
apitop = reverse('ietf.api.top_level')
40+
apitop = reverse('ietf.api.views.top_level')
4141
self.assertValidXMLResponse(self.api_client.get('%s/doc/'%apitop, format='xml'))
4242

4343
def test_json_doc_document(self):
@@ -47,7 +47,7 @@ def test_json_doc_document(self):
4747
than 100 documents in the test-data (the current count is 10)
4848
"""
4949
make_test_data()
50-
apitop = reverse('ietf.api.top_level')
50+
apitop = reverse('ietf.api.views.top_level')
5151
r = self.api_client.get('%s/doc/document/'%apitop, format='json', limit=100)
5252
doclist = self.deserialize(r)["objects"]
5353
docs = dict( (doc["name"], doc) for doc in doclist )
@@ -67,7 +67,7 @@ def test_json_doc_relationships(self):
6767
of relationships give URLs which are handled without raising exceptions.
6868
"""
6969
make_test_data()
70-
apitop = reverse('ietf.api.top_level')
70+
apitop = reverse('ietf.api.views.top_level')
7171
r = self.api_client.get('%s/doc/document/'%apitop, format='json')
7272
doclist = self.deserialize(r)["objects"]
7373
for doc in doclist:

0 commit comments

Comments
 (0)