def testGedaFootprint(self): """geda.Footprint""" common.load_dataset('geda_footprints') f = Footprint(file=common.tmpd + '/plcc4-rgb-led') f = Footprint(file=common.tmpd + '/supercap_20mm')
def testLoadDatasetInvalid(self): """load_dataset() with invalid dataset should fail immediately""" self.assertRaises(AssertionError,common.load_dataset,"invalid dataset") # make sure the above didn't clobber further tests common.load_dataset('check_dataset_not_empty1')
def testCheckDatasetSymlinks(self): """check_dataset() knows about symlinks""" common.load_dataset('check_dataset_not_empty_symlink') # Create a symlink os.symlink(common.tmpd + "/foo",common.tmpd + "/bar") self.assert_(not common.check_dataset('check_dataset_not_empty_symlink.check'))
def check(a,b): common.load_dataset(a) return common.check_dataset(b)