Example #1
0
def test_factory():
    appff = AppFactoryFactory('main')
    app_f = appff.make('bash', workers, app_2, walltime=60)
    assert type(app_f) == AppFactory, "AppFactoryFactory made the wrong type"

    app_f_2 = appff.make('python', workers, app_3, walltime=60)
    assert type(app_f_2) == AppFactory, "AppFactoryFactory made the wrong type"
Example #2
0
def test_factory():
    appff = AppFactoryFactory('main')
    app_f = appff.make('bash', app_2, workers, walltime=60)
    assert isinstance(app_f,
                      AppFactory), "AppFactoryFactory made the wrong type"

    app_f_2 = appff.make('python', app_3, workers, walltime=60)
    assert isinstance(app_f_2,
                      AppFactory), "AppFactoryFactory made the wrong type"