Esempio n. 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')
Esempio n. 2
0
File: meta.py Progetto: 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')
Esempio n. 3
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')
Esempio n. 4
0
File: meta.py Progetto: 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'))
Esempio n. 5
0
File: meta.py Progetto: SiggyF/tuke
 def check(a,b):
     common.load_dataset(a)
     return common.check_dataset(b)