Ejemplo n.º 1
0
    def test_scenario13(self):
        """
            Scenario: Successfully building an ensemble reify output in python
                Given I create a BigML ensemble from a dataset with data "<data>" and params "<params>"
                And I check that the source has been created
                And I check that the dataset has been created
                And I check that the ensemble has been created
                Then I create a reify output in "<output>" for "<language>"
                And the "<output>" file is like "<check_file>"

                Examples:
                | data | output | params |check_file | language
                | data/iris.csv | scenario_re13/reify.py | {"name": "my_ensemble_name"}|../check_files/reify_ensemble.py | python
        """
        print self.test_scenario13.__doc__
        examples = [
            ['data/iris.csv', 'scenario_re13/reify.py', {"name": "my_ensemble_name"}, 'check_files/reify_ensemble.py', 'python']]

        for example in examples:
            print "\nTesting with:\n", example
            test_reify.create_ensemble(example[0], output=example[1],
                                       args=example[2])
            test_reify.i_create_output(self, example[1], example[4],
                                       resource_type='ensemble')
            test_reify.i_check_output_file(self, output=example[1],
                                           check_file=example[3])
Ejemplo n.º 2
0
    def test_scenario13(self):
        """
            Scenario: Successfully building an ensemble reify output in python
                Given I create a BigML ensemble from a dataset with data "<data>" and params "<params>"
                And I check that the source has been created
                And I check that the dataset has been created
                And I check that the ensemble has been created
                Then I create a reify output in "<output>" for "<language>"
                And the "<output>" file is like "<check_file>"

                Examples:
                | data | output | params |check_file | language
                | data/iris.csv | scenario_re13/reify.py | {"name": "my_ensemble_name"}|../check_files/reify_ensemble.py | python
        """
        print self.test_scenario13.__doc__
        examples = [
            ['data/iris.csv', 'scenario_re13/reify.py', {"name": "my_ensemble_name"}, 'check_files/reify_ensemble.py', 'python']]

        for example in examples:
            print "\nTesting with:\n", example
            test_reify.create_ensemble(example[0], output=example[1],
                                       args=example[2])
            test_reify.i_create_output(self, example[1], example[4],
                                       resource_type='ensemble')
            test_reify.i_check_output_file(self, output=example[1],
                                           check_file=example[3])