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

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

src/p/y/pytrainer-HEAD/extensions/stravaupload/test_strava.py   pytrainer(Download)
import unittest, os
from time import sleep
from stravaupload import ProgressDialog, StravaUpload
 
class StravaUploadTest(unittest.TestCase):
    def test_progress_process_closes_cleanly(self):
        with ProgressDialog("testing") as p:
            sleep(2)
        self.assert_(p.progress.poll() is not None, 'zenity still running!')