Skip to content

Commit 6b8c006

Browse files
author
Kip Lehman
committed
S142094 fixed test regarding pullrequest
1 parent 108b39e commit 6b8c006

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/test_pull_request.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ def test_create_local_pull_request_instance():
4848
assert pr.Workspace == DEFAULT_WORKSPACE
4949

5050
def test_post_pull_request():
51-
expectedErrMsg = "No such entity: PullRequest"
51+
expectedErrMsg = '422 Requested type name "pullrequest" is unknown.'
5252
rally = Rally(server=AGICEN, user=AGICEN_USER, password=AGICEN_PSWD)
5353
with py.test.raises(RallyRESTAPIError) as excinfo:
5454
rally.create('PullRequest', dummy_data)
55-
actualErrVerbiage = excinfo.value.args[0] # becuz Python2.6 deprecates message :-(
56-
assert excinfo.value.__class__.__name__ == 'RallyRESTAPIError'
57-
assert expectedErrMsg in actualErrVerbiage
55+
actualErrVerbiage = excinfo.value.args[0] # becuz Python2.6 deprecates message :-(
56+
assert excinfo.value.__class__.__name__ == 'RallyRESTAPIError'
57+
assert expectedErrMsg == actualErrVerbiage
5858

0 commit comments

Comments
 (0)