Example #1
0
class TestConceptListStorage(unittest.TestCase):
    """Requires test_concept_library"""
    def setUp(self):
        from pydsl.Memory.Storage.List import ConceptListStorage
        self._cll = ConceptListStorage("tests/conceptlibrary.list")

    def test_load(self):
        self.assertTrue(self._cll.load("person"))
        with self.assertRaises(KeyError):
            self._cll.load("person2")
    
    def test_generate_all_summaries(self):
        self._cll.generate_all_summaries()
Example #2
0
 def setUp(self):
     from pydsl.Memory.Storage.List import ConceptListStorage
     self._cll = ConceptListStorage("tests/conceptlibrary.list")