Example #1
0
    def test_lock(self):
        readme_path = b'%s/trunk/README.txt' % self.path

        lock = core.svn_lock_create(core.Pool())
        lock.token = b'http://svnbook.org/nightly/en/svn.advanced.locking.html'

        wc.add_lock(readme_path, lock, self.wc)
        self.assertEqual(True, wc.adm_locked(self.wc))
        self.assertEqual(True, wc.locked(self.path))
        wc.remove_lock(readme_path, self.wc)
Example #2
0
  def test_lock(self):
      readme_path = '%s/trunk/README.txt' % self.path

      lock = core.svn_lock_create(core.Pool())
      lock.token = 'http://svnbook.org/nightly/en/svn.advanced.locking.html'

      wc.add_lock(readme_path, lock, self.wc)
      self.assertEqual(True, wc.adm_locked(self.wc))
      self.assertEqual(True, wc.locked(self.path))
      wc.remove_lock(readme_path, self.wc)
Example #3
0
 def test_lock(self):
     lock = wc.add_lock(self.path, core.svn_lock_create(core.Pool()),
                        self.wc)
     self.assertEqual(True, wc.adm_locked(self.wc))
     self.assertEqual(True, wc.locked(self.path))
     wc.remove_lock(self.path, self.wc)
Example #4
0
File: wc.py Project: vocho/openqnx
 def test_lock(self):
     lock = wc.add_lock(self.path, core.svn_lock_create(core.Pool()), self.wc)
     self.assertEqual(True, wc.adm_locked(self.wc))
     self.assertEqual(True, wc.locked(self.path))
     wc.remove_lock(self.path, self.wc)