def test_save(self):
        args = get_common_args()
        args += ['-m', 'platformtest.yml', 'save', self.appname, '-y']
        status = main(args)
        assert status == 0
        # Re-use the API that main() has created.
        blueprint = env.api.get_blueprint(env.blueprint['id'])
        assert blueprint is not None
        assert blueprint['id'] == env.blueprint['id']
        assert blueprint['name'] == env.blueprint['name']
        assert blueprint['state'] in ('PENDING', 'SAVING', 'DONE')
        assert len(blueprint['vms']) == len(self.vms)
dataset/ETHPy150Open ravello/testmill/lib/testmill/test/test_save.py/TestSave.test_save/original