def test_blacklisted_magic_numbers():

    err = _do_test("tests/resources/packagelayout/magic_number.xpi",
                   packagelayout.test_blacklisted_files,
                   True)
    assert err.metadata["contains_binary_content"]
    assert "binary_components" not in err.metadata
Tests that blacklisted magic numbers are banned
dataset/ETHPy150Open mozilla/app-validator/tests/test_packagelayout.py/test_blacklisted_magic_numbers