def test_excludes_contexts():
    iom = IOMemory()
    iom.add((URIRef('http://example.org/a'), URIRef('http://example.org/b'),
             URIRef('http://example.org/c')),
            context='http://example.org/ctx')
    bds = BundleDependencyStore(iom, excludes=set(['http://example.org/ctx']))
    assert set([]) == set(bds.contexts())
def test_empty_contexts_without_excludes():
    iom = IOMemory()
    bds = BundleDependencyStore(iom)
    assert set([]) == set(bds.contexts())
def test_empty_contexts_with_excludes():
    iom = IOMemory()
    bds = BundleDependencyStore(iom, excludes=set(['http://example.org/ctx']))
    assert set([]) == set(bds.contexts())