def test_overlay_object(): """Test that overlay instructions have all its properties.""" err = ErrorBundle() c = ChromeManifest(""" content namespace /foo/bar overlay namespace /uri/goes/here """, "chrome.manifest") err.save_resource("chrome.manifest", c) c.get_applicable_overlays(err) assert not err.failed() assert not err.notices err = ErrorBundle() c = ChromeManifest(""" content namespace /foo/bar overlay /uri/goes/here """, "chrome.manifest") err.save_resource("chrome.manifest", c) c.get_applicable_overlays(err) assert err.failed() assert not err.notices
def test_overlay_object(): """Test that overlay instructions have all its properties.""" err = ErrorBundle() c = ChromeManifest( """ content namespace /foo/bar overlay namespace /uri/goes/here """, 'chrome.manifest') err.save_resource('chrome.manifest', c) c.get_applicable_overlays(err) assert not err.failed() assert not err.notices err = ErrorBundle() c = ChromeManifest( """ content namespace /foo/bar overlay /uri/goes/here """, 'chrome.manifest') err.save_resource('chrome.manifest', c) c.get_applicable_overlays(err) assert err.failed() assert not err.notices