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

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)
str(object='') -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

src/s/t/stravalib-HEAD/stravalib/tests/functional/test_client_write.py   stravalib(Download)
from stravalib import model, exc, attributes, unithelper as uh
from stravalib.client import Client
from stravalib.tests import TestBase, TESTS_DIR, RESOURCES_DIR
 
TEST_CFG = os.path.join(TESTS_DIR, 'test.ini')
        writable Strava acct.
        """
        with open(os.path.join(RESOURCES_DIR, 'sample.tcx')) as fp:
            uploader = self.client.upload_activity(fp, data_type='tcx')
            self.assertTrue(uploader.is_processing)

src/s/t/stravalib-0.2.2/stravalib/tests/functional/test_client_write.py   stravalib(Download)
from stravalib import model, exc, attributes, unithelper as uh
from stravalib.client import Client
from stravalib.tests import TestBase, TESTS_DIR, RESOURCES_DIR
 
TEST_CFG = os.path.join(TESTS_DIR, 'test.ini')
        writable Strava acct.
        """
        with open(os.path.join(RESOURCES_DIR, 'sample.tcx')) as fp:
            uploader = self.client.upload_activity(fp, data_type='tcx')
            self.assertTrue(uploader.is_processing)