File: test_issue_git_200.py

package info (click to toggle)
rdflib 6.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 38,248 kB
  • sloc: python: 39,216; sh: 153; makefile: 110
file content (11 lines) | stat: -rw-r--r-- 213 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
import rdflib
import pytest


def test_broken_add():

    g = rdflib.Graph()
    with pytest.raises(AssertionError):
        g.add((1, 2, 3))
    with pytest.raises(AssertionError):
        g.addN([(1, 2, 3, g)])