示例#1
0
def test_pub1_type_publication_is_a_path():
    graph_parser.parse('tests/assets/paper.nt')
    assert [
        u'<http://demo.com/publications.rdf#pub1>',
        u'<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>',
        u'<http://demo.com/types.rdf#Publication>'
    ] in graph_parser.paths()
示例#2
0
def test_there_are_10_paths():
    graph_parser.parse('tests/assets/paper.nt')
    assert 10 == len(graph_parser.paths())