Created
June 12, 2012 18:20
-
-
Save dwalleck/2919177 to your computer and use it in GitHub Desktop.
This file contains 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
test_data = [...some list of dictionaries with inputs to use and the expected exception ...] | |
def test_create_servers_negative_input(self): | |
for data in test_data: | |
yield self.create_delete_server, test_data, test_data['exception'] | |
def create_delete_server(self, data, expected_exception): | |
try: | |
self.servers_client.create_server(data) | |
except expected_exception: | |
pass | |
else: | |
fail |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment