def test_getISOTXSFilesWithoutLibrarySuffix(self): shouldBeThere = ["ISOAA", "ISOBA"] shouldNotBeThere = [ "ISOBA-n2", "ISOTXS", "ISOTXS-c2", "dummyISOTXS", "ISOTXS.BCD", "ISOAA.BCD", ] filesInDirectory = shouldBeThere + shouldNotBeThere toMerge = xsLibraries.getISOTXSLibrariesToMerge("", filesInDirectory) self.assert_contains_only(toMerge, shouldBeThere, shouldNotBeThere)
def test_getISOTXSFilesWithLibrarySuffix(self): shouldBeThere = ["ISOAA-n23", "ISOAAF-n23", "ISOBA-n23", "ISOCA", "ISODA"] shouldNotBeThere = [ "ISOAA", "ISOAA-n24", "ISOBA-ISO", "ISOBA-n2", "ISOTXS", "ISOTXS-c2", "dummyISOTXS", "ISOTXS.BCD", "ISOAA.BCD", "ISOCA-doppler", "ISOSA-void", ] filesInDirectory = shouldBeThere + shouldNotBeThere toMerge = xsLibraries.getISOTXSLibrariesToMerge("-n23", filesInDirectory) self.assert_contains_only(toMerge, shouldBeThere, shouldNotBeThere)