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

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

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)
        # need to go for a commit and rollback kind of scenario for this to work
        self.db_proxy._engine.dispose()
        tests.DB_COUNTER += 1
        tests.delOldDb()
 
        tests.delOldDb()
        self.flickr_api_mgr = FlickrApiMgrStub()
        self.db_proxy = DbProxy(db_url=tests.TESTDBURL % tests.DB_COUNTER)
        self.photomgr = FlickrImageManager(db_proxy=self.db_proxy)
 
        # need to go for a commit and rollback kind of scenario for this to work
        self.db_proxy._engine.dispose()
        tests.DB_COUNTER += 1
        tests.delOldDb()