def test_bad_setup(monkeypatch):

    runner = prepare()

    (flexmock(OSBS)
     .should_receive('get_image_stream')
     .never())
    (flexmock(OSBS)
     .should_receive('create_image_stream')
     .never())
    (flexmock(OSBS)
     .should_receive('import_image')
     .never())

    # No build JSON
    monkeypatch.delenv("BUILD", raising=False)
    with pytest.raises(PluginFailedException):
        runner.run()
Get prev bitmask in the enum (bitfield)
dataset/ETHPy150Open projectatomic/atomic-reactor/tests/plugins/test_import_image.py/test_bad_setup--crossover with--dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/GetPrevBmask