def test_namestring(self): # Only ra-{neon,serf} support this right now. if self.repos_uri.startswith('http'): called = [False] def cb(pool): called[0] = True return 'namestring_test' self.callbacks.get_client_string = cb ra.stat(self.ra_ctx, "", 1) self.assert_(called[0])
def test_namestring(self): # Only ra-{svn,serf} support this right now. uri = self.repos_uri if uri.startswith(b'http') or uri.startswith(b'svn'): called = [False] def cb(pool): called[0] = True return b'namestring_test' self.callbacks.get_client_string = cb ra.stat(self.ra_ctx, b"", 1) self.assertTrue(called[0])
def test_namestring(self): # Only ra-{svn,serf} support this right now. uri = self.repos_uri if uri.startswith("http") or uri.startswith("svn"): called = [False] def cb(pool): called[0] = True return "namestring_test" self.callbacks.get_client_string = cb ra.stat(self.ra_ctx, "", 1) self.assert_(called[0])