diff options
author | aayush17002 <32807623+aayush17002@users.noreply.github.com> | 2020-05-25 12:11:38 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-25 12:11:38 +0530 |
commit | d3f49e7303b8b021de7c76340a479501e5eb6a7b (patch) | |
tree | 5c494c8802e56f3da462a81e92f541b7c0b81ee6 | |
parent | ff70fa518475cd86bcc6297a33b4f6076164f953 (diff) | |
download | rdflib-d3f49e7303b8b021de7c76340a479501e5eb6a7b.tar.gz |
Updating test file for issue #801
Updated test file to test issue 801
-rw-r--r-- | test/test_issue801.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/test_issue801.py b/test/test_issue801.py new file mode 100644 index 00000000..f139a0c1 --- /dev/null +++ b/test/test_issue801.py @@ -0,0 +1,20 @@ + """ +Issue 801 - Problem with prefixes created for URIs containing %20 +""" + +from rdflib import Namespace, Graph, BNode, Literal +import unittest + +class TestIssue801(unittest.TestCase): + + def test_issue_801(self): + g = Graph() + example = Namespace('http://example.org/') + g.bind('', example) + node = BNode() + g.add((node, example['first%20name'], Literal('John'))) + print(g.serialize(format="turtle").decode()) + + +if __name__ == "__main__": + unittest.main() |