/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to brzlib/tests/test_counted_lock.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 12:41:27 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521124127-iv8etg0vwymyai6y
s/bzr/brz/ in apport config.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
 
"""Tests for breezy.counted_lock"""
 
17
"""Tests for brzlib.counted_lock"""
18
18
 
19
 
from ..counted_lock import CountedLock
20
 
from ..errors import (
 
19
from brzlib.counted_lock import CountedLock
 
20
from brzlib.errors import (
21
21
    LockError,
22
22
    LockNotHeld,
23
23
    ReadOnlyError,
24
24
    TokenMismatch,
25
25
    )
26
 
from . import TestCase
 
26
from brzlib.tests import TestCase
27
27
 
28
28
 
29
29
class DummyLock(object):
69
69
    def _assert_not_locked(self):
70
70
        if self._lock_mode:
71
71
            raise LockError("%s is already locked in mode %r" %
72
 
                            (self, self._lock_mode))
 
72
                (self, self._lock_mode))
73
73
 
74
74
    def validate_token(self, token):
75
75
        if token == 'token':