예제 #1
0
    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')
예제 #2
0
파일: meta.py 프로젝트: SiggyF/tuke
    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')
예제 #3
0
파일: footprint.py 프로젝트: SiggyF/tuke
    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')
예제 #4
0
파일: meta.py 프로젝트: SiggyF/tuke
    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'))
예제 #5
0
파일: meta.py 프로젝트: SiggyF/tuke
 def check(a,b):
     common.load_dataset(a)
     return common.check_dataset(b)