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/p/t/ptah-HEAD/ptah/tests/test_security.py   ptah(Download)
    def test_roles_provider(self):
        import ptah
        from ptah.security import ID_ROLES_PROVIDER
 
        @ptah.roles_provider('test1')
        self.init_ptah()
 
        data = self.config.get_cfg_storage(ID_ROLES_PROVIDER)
 
        self.assertIn('test1', data)

src/p/t/ptah-0.8.0/ptah/tests/test_security.py   ptah(Download)
    def test_roles_provider(self):
        import ptah
        from ptah.security import ID_ROLES_PROVIDER
 
        @ptah.roles_provider('test1')
        self.init_ptah()
 
        data = self.config.get_cfg_storage(ID_ROLES_PROVIDER)
 
        self.assertIn('test1', data)