def test_uuid_from_path(self): """Test svn_client_uuid_from_path.""" rev = core.svn_opt_revision_t() rev.kind = core.svn_opt_revision_head path = self.temper.alloc_empty_dir("-uuid_from_path") client.checkout2(self.repos_uri, path, rev, rev, True, True, self.client_ctx) wc_adm = wc.adm_open3(None, path, False, 0, None) self.assertEquals( client.uuid_from_path(path, wc_adm, self.client_ctx), client.uuid_from_url(self.repos_uri, self.client_ctx) ) self.assert_(isinstance(client.uuid_from_path(path, wc_adm, self.client_ctx), basestring))
def test_uuid_from_path(self): """Test svn_client_uuid_from_path.""" rev = core.svn_opt_revision_t() rev.kind = core.svn_opt_revision_head path = self.temper.alloc_empty_dir('-uuid_from_path') client.checkout2(self.repos_uri, path, rev, rev, True, True, self.client_ctx) wc_adm = wc.adm_open3(None, path, False, 0, None) self.assertEqual(client.uuid_from_path(path, wc_adm, self.client_ctx), client.uuid_from_url(self.repos_uri, self.client_ctx)) self.assertTrue(isinstance(client.uuid_from_path(path, wc_adm, self.client_ctx), bytes))
def test_uuid_from_path(self): """Test svn_client_uuid_from_path.""" rev = core.svn_opt_revision_t() rev.kind = core.svn_opt_revision_head path = tempfile.mktemp('uuid_from_path') client.checkout2(REPOS_URL, path, rev, rev, True, True, self.client_ctx) wc_adm = wc.adm_open3(None, path, False, 0, None) self.assertEquals(client.uuid_from_path(path, wc_adm, self.client_ctx), client.uuid_from_url(REPOS_URL, self.client_ctx)) self.assert_(isinstance(client.uuid_from_path(path, wc_adm, self.client_ctx), types.StringTypes))