/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_smart_request.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 11:25:18 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521112518-5x3xa7t4hnjk8kb8
Rename bzrlib => brzlib, bzr => brz.

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 smart server request infrastructure (bzrlib.smart.request)."""
 
17
"""Tests for smart server request infrastructure (brzlib.smart.request)."""
18
18
 
19
19
import threading
20
20
 
21
 
from bzrlib import (
 
21
from brzlib import (
22
22
    errors,
23
23
    transport,
24
24
    )
25
 
from bzrlib.bzrdir import BzrDir
26
 
from bzrlib.smart import request
27
 
from bzrlib.tests import TestCase, TestCaseWithMemoryTransport
 
25
from brzlib.bzrdir import BzrDir
 
26
from brzlib.smart import request
 
27
from brzlib.tests import TestCase, TestCaseWithMemoryTransport
28
28
 
29
29
 
30
30
class NoBodyRequest(request.SmartServerRequest):
176
176
 
177
177
 
178
178
class TestRequestHanderErrorTranslation(TestCase):
179
 
    """Tests for bzrlib.smart.request._translate_error."""
 
179
    """Tests for brzlib.smart.request._translate_error."""
180
180
 
181
181
    def assertTranslationEqual(self, expected_tuple, error):
182
182
        self.assertEqual(expected_tuple, request._translate_error(error))
256
256
        """Opening a bzrdir in a non-main thread should work ok.
257
257
        
258
258
        This makes sure that the globally-installed
259
 
        bzrlib.smart.request._pre_open_hook, which uses a threading.local(),
 
259
        brzlib.smart.request._pre_open_hook, which uses a threading.local(),
260
260
        works in a newly created thread.
261
261
        """
262
262
        bzrdir = self.make_bzrdir('.')