예제 #1
0
class TestRelationListStorage(unittest.TestCase):
    def setUp(self):
        from pydsl.Memory.Storage.List import RelationListStorage
        self._cll = RelationListStorage("tests/relationlibrary.list")

    @unittest.skip
    def test_load(self):
        self.assertTrue(self._cll.load("{'object': 'concept2', 'subject': 'concept1'}ISA"))
        with self.assertRaises(KeyError):
            self._cll.load("WHAT")
    
    def test_generate_all_summaries(self):
        self._cll.generate_all_summaries()
예제 #2
0
 def setUp(self):
     from pydsl.Memory.Storage.List import RelationListStorage
     self._cll = RelationListStorage("tests/relationlibrary.list")