コード例 #1
0
def test_invalid_package_type():
    """Assert that conduit toolbars can only be extensions."""

    err = ErrorBundle()
    err.detected_type = PACKAGE_ANY
    assert conduit.test_conduittoolbar(err) is None
    err.detected_type = PACKAGE_THEME
    assert conduit.test_conduittoolbar(err) is None
    err.detected_type = PACKAGE_SEARCHPROV
    assert conduit.test_conduittoolbar(err) is None
コード例 #2
0
ファイル: test_conduit.py プロジェクト: nmaier/amo-validator
def test_invalid_package_type():
    "No such thing as a Conduit theme."
    
    err = ErrorBundle(None, True)
    err.detected_type = PACKAGE_ANY
    assert conduit.test_conduittoolbar(err) is None
    err.detected_type = PACKAGE_THEME
    assert conduit.test_conduittoolbar(err) is None
    err.detected_type = PACKAGE_SEARCHPROV
    assert conduit.test_conduittoolbar(err) is None