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
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