def test_scenario1(self): """ Scenario: Successfully creating a whizzml library: Given I create a whizzml library from a excerpt of code "<source_code>" And I wait until the library is ready less than <time_1> secs And I update the library with "<param>", "<param_value>" And I wait until the library is ready less than <time_2> secs Then the library code is "<source_code>" and the value of "<param>" is "<param_value>" Examples: | source_code | time_1 | time_2 | param | param_value | (define (mu x) (+ x 1)) | 10 | 10 | name | my library """ print self.test_scenario1.__doc__ examples = [[ '(define (mu x) (+ x 1))', '10', '10', 'name', 'my library' ]] for example in examples: print "\nTesting with:\n", example library_create.i_create_a_library(self, example[0]) library_create.the_library_is_finished(self, example[1]) library_create.i_update_a_library(self, example[3], example[4]) library_create.the_library_is_finished(self, example[2]) library_create.the_library_code_and_attributes( self, example[0], example[3], example[4])
def test_scenario1(self): """ Scenario: Successfully creating a whizzml library: Given I create a whizzml library from a excerpt of code "<source_code>" And I wait until the library is ready less than <time_1> secs And I update the library with "<param>", "<param_value>" And I wait until the library is ready less than <time_2> secs Then the library code is "<source_code>" and the value of "<param>" is "<param_value>" Examples: | source_code | time_1 | time_2 | param | param_value | (define (mu x) (+ x 1)) | 10 | 10 | name | my library """ print self.test_scenario1.__doc__ examples = [ ['(define (mu x) (+ x 1))', '10', '10', 'name', 'my library']] for example in examples: print "\nTesting with:\n", example library_create.i_create_a_library(self, example[0]) library_create.the_library_is_finished(self, example[1]) library_create.i_update_a_library(self, example[3], example[4]) library_create.the_library_is_finished(self, example[2]) library_create.the_library_code_and_attributes(self, example[0], example[3], example[4])