| 1 | import unittest |
| 2 | |
| 3 | from rdflib import Literal, SDO, Graph |
| 4 | |
| 5 | from rdflib_sqlalchemy.termutils import type_to_term_combination |
| 6 | |
| 7 | |
| 8 | class TypeToTermCombinationTestCase(unittest.TestCase): |
| 9 | """Test the type_to_term_combination function.""" |
| 10 | |
| 11 | def test_luuu(self): |
| 12 | """Literal is not a valid subject for a triple.""" |
| 13 | with self.assertRaises(ValueError): |
| 14 | type_to_term_combination( |
| 15 | member=Literal('https://example.org'), |
| 16 | klass=SDO.WebSite, |
| 17 | context=Graph(identifier='local://test-graph/'), |
| 18 | ) |