Example #1
0
    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))
Example #2
0
  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))
Example #3
0
  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))
Example #4
0
  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))
Example #5
0
 def test_uuid_from_url(self):
   """Test svn_client_uuid_from_url on a file:// URL"""
   self.assertTrue(isinstance(
                client.uuid_from_url(self.repos_uri, self.client_ctx),
                bytes))
Example #6
0
 def test_uuid_from_url(self):
   """Test svn_client_uuid_from_url on a file:// URL"""
   self.assert_(isinstance(
                client.uuid_from_url(self.repos_uri, self.client_ctx),
                basestring))
Example #7
0
 def test_uuid_from_url(self):
     """Test svn_client_uuid_from_url on a file:// URL"""
     self.assert_(
         isinstance(client.uuid_from_url(REPOS_URL, self.client_ctx),
                    types.StringTypes))
Example #8
0
 def test_uuid_from_url(self):
   """Test svn_client_uuid_from_url on a file:// URL"""
   self.assert_(isinstance(
                client.uuid_from_url(REPOS_URL, self.client_ctx),
                types.StringTypes))