Пример #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
    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
    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
    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
 def check(a,b):
     common.load_dataset(a)
     return common.check_dataset(b)