Ejemplo n.º 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
Ejemplo n.º 2
0
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