Skip to content

Commit 73b6a89

Browse files
committed
Fix test.
1 parent 757b37d commit 73b6a89

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/rest_common.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2010,8 +2010,8 @@ def testDispatch(self):
20102010
json_dict = json.loads(b2s(results))
20112011
self.assertEqual(json_dict['error']['status'], 400)
20122012
self.assertEqual(json_dict['error']['msg'],
2013-
"Unrecognized version: L. See /rest without "
2014-
"specifying version for supported versions.")
2013+
"Unrecognized api version: L. See /rest without "
2014+
"specifying api version for supported versions.")
20152015

20162016
headers={"accept": "application/json; version=z" }
20172017
self.headers=headers
@@ -2022,8 +2022,8 @@ def testDispatch(self):
20222022
json_dict = json.loads(b2s(results))
20232023
self.assertEqual(json_dict['error']['status'], 400)
20242024
self.assertEqual(json_dict['error']['msg'],
2025-
"Unrecognized version: z. See /rest without "
2026-
"specifying version for supported versions.")
2025+
"Unrecognized api version: z. See /rest without "
2026+
"specifying api version for supported versions.")
20272027

20282028
headers={"accept": "application/vnd.roundup.test-vz+json" }
20292029
self.headers=headers
@@ -2035,8 +2035,8 @@ def testDispatch(self):
20352035
json_dict = json.loads(b2s(results))
20362036
self.assertEqual(json_dict['error']['status'], 400)
20372037
self.assertEqual(json_dict['error']['msg'],
2038-
"Unrecognized version: z. See /rest without "
2039-
"specifying version for supported versions.")
2038+
"Unrecognized api version: z. See /rest without "
2039+
"specifying api version for supported versions.")
20402040

20412041
# verify that version priority is correct; should be version=...
20422042
headers={"accept": "application/vnd.roundup.test-vz+json; version=a"
@@ -2050,8 +2050,8 @@ def testDispatch(self):
20502050
json_dict = json.loads(b2s(results))
20512051
self.assertEqual(json_dict['error']['status'], 400)
20522052
self.assertEqual(json_dict['error']['msg'],
2053-
"Unrecognized version: a. See /rest without "
2054-
"specifying version for supported versions.")
2053+
"Unrecognized api version: a. See /rest without "
2054+
"specifying api version for supported versions.")
20552055

20562056
# TEST #10
20572057
# check /rest and /rest/summary and /rest/notthere

0 commit comments

Comments
 (0)