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