@@ -0,0 +1,1002 @@
+import importlib.util%0Afrom pathlib import Path%0Aimport unittest%0A%0Aimport crowsetta%0A%0AHERE = Path(__file__).parent%0ADATA_DIR = HERE.joinpath('test_data')%0A%0Ayarden2annot_module = HERE.joinpath('../src/gardner/yarden2annot.py')%0A%0A%0Aclass TestYarden2Annot(unittest.TestCase):%0A    def setUp(self):%0A        spec = importlib.util.spec_from_file_location(yarden2annot_module.name.replace('.py', ''),%0A                                                      yarden2annot_module)%0A        self.yarden2annot = importlib.util.module_from_spec(spec)%0A        spec.loader.exec_module(self.yarden2annot)%0A%0A        self.test_mat = DATA_DIR.joinpath('mat').joinpath('llb3_annot_subset.mat')%0A%0A    def test_yarden2annot(self):%0A        annot_list = self.yarden2annot.yarden2annot(annot_file=self.test_mat)%0A        self.assertTrue(%0A            type(annot_list) == list%0A        )%0A        self.assertTrue(%0A            all(%5Btype(el) == crowsetta.Annotation for el in annot_list%5D)%0A        )%0A%0A%0Aif __name__ == '__main__':%0A    unittest.main()%0A

add tests/test_yarden2annot.py