Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: some test code cause 200 response to be unsuccessful #12

Merged
merged 1 commit into from
Jul 18, 2017

Conversation

jamesyin96
Copy link
Contributor

Originally, some request test has code like this:
resp['status'] != '301':
raise Exception('Received an unsuccessful status code of %s' % resp['status']).
This will cause successful response falls into the exception because resp['status']='200'

Originally, some request test has code like this:
resp['status'] != '301': 
    raise Exception('Received an unsuccessful status code of %s' % resp['status']).
This will cause successful response falls into the exception because resp['status']='200'
@Lucashuang0802
Copy link

This is the same with #9

@ambar-cloudcover
Copy link

+1 for this pull request, please merge it in!

@byanofsky
Copy link

Definitely think this should be merged. It's not readily apparent that 301 status codes should be returned in this problem without reading the test code.

@karlud karlud merged commit 2e79718 into udacity:master Jul 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants