Last active
December 10, 2017 04:09
-
-
Save Kalimaha/b8f343984ea86b38563d7519fb4ae160 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @given('steaks are available') | |
| @upon_receiving('a request for a well-done steak') | |
| @with_request({'method': 'POST', 'path': '/steaks/', 'body': {'cooking': 'well-done'}}) | |
| @will_respond_with({'status': 422, 'body': {'reason': 'we do not serve well-done steaks'}}) | |
| def test_steak(self): | |
| response = steak('well-done') | |
| assert response.status_code == 422 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment