Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

        def delOldDb():
    try:
        olddbfiles = glob.glob(TESTDB % '*')
        for olddb in olddbfiles:
            os.remove(olddb)
    except (IOError, WindowsError):
        # Unable to unlink this one, try again next round
        pass
        


src/p/y/py2FaceR-0.1.1/src/py2facer/tests/flickr.py   py2FaceR(Download)
    def setUp(self):
        tests.delOldDb()
        self.flickr_api_mgr = FlickrApiMgrStub()
        self.picasa_contacts = picasa.ContactParser()
        self.db_proxy = DbProxy(db_url=tests.TESTDBURL % tests.DB_COUNTER)
        self.db_proxy._engine.dispose()
        tests.DB_COUNTER += 1
        tests.delOldDb()
 
    def addSimpleContact(self):
    def setUp(self):
        self.IMAGES = [image.Image(tests.TESTFILES['img']), 
                       image.Image('%s/testdata/007.JPG' % tests.BASEPATH),
                       image.Image('%s/testdata/Nobody.jpg' % tests.BASEPATH)]
        tests.delOldDb()
        self.db_proxy._engine.dispose()
        tests.DB_COUNTER += 1
        tests.delOldDb()
 
    def testNoResult(self):