Mercurial > code > home > repos > rdfdb
view rdfdb/currentstategraphapi_test.py @ 53:a21b87140758
more stubs
Ignore-this: ff80b18a86305d43128277f5db0248b5
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Thu, 30 May 2019 08:15:10 +0000 |
parents | dc61012eeace |
children | 22c9679dbf67 |
line wrap: on
line source
import unittest from rdflib import URIRef from rdfdb.syncedgraph import SyncedGraph class TestSequentialUri(unittest.TestCase): def test_returnsSequentialUris(self): g = SyncedGraph(URIRef('http://example.com/db/'), label='test') self.assertEqual(g.sequentialUri(URIRef('http://example.com/foo')), URIRef('http://example.com/foo1')) self.assertEqual(g.sequentialUri(URIRef('http://example.com/foo')), URIRef('http://example.com/foo2'))