/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 bzrlib/tests/test_read_bundle.py

  • Committer: John Arbash Meinel
  • Date: 2011-01-10 22:20:12 UTC
  • mfrom: (5582 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5599.
  • Revision ID: john@arbash-meinel.com-20110110222012-mtcqudkvmzwiufuc
Merge in the bzr.dev 5582

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006 Canonical Ltd
 
1
# Copyright (C) 2006-2011 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
30
30
import bzrlib.transport
31
31
from bzrlib.transport.memory import MemoryTransport
32
32
import bzrlib.urlutils
33
 
 
34
 
 
35
 
def load_tests(standard_tests, module, loader):
36
 
    """Multiply tests for tranport implementations."""
37
 
    transport_tests, remaining_tests = tests.split_suite_by_condition(
38
 
        standard_tests,
39
 
        tests.condition_isinstance(TestReadMergeableBundleFromURL))
40
 
    return tests.multiply_tests(transport_tests, transport_test_permutations(),
41
 
        remaining_tests)
 
33
from bzrlib.tests.scenarios import load_tests_apply_scenarios
 
34
 
 
35
 
 
36
load_tests = load_tests_apply_scenarios
42
37
 
43
38
 
44
39
def create_bundle_file(test_case):
64
59
class TestReadMergeableBundleFromURL(TestTransportImplementation):
65
60
    """Test that read_bundle works properly across multiple transports"""
66
61
 
 
62
    scenarios = transport_test_permutations()
 
63
 
67
64
    def setUp(self):
68
65
        super(TestReadMergeableBundleFromURL, self).setUp()
69
66
        self.bundle_name = 'test_bundle'
72
69
        # from the one we want to test, so we must inject a correct transport
73
70
        # into possible_transports first).
74
71
        self.possible_transports = [self.get_transport(self.bundle_name)]
75
 
        self._captureVar('BZR_NO_SMART_VFS', None)
 
72
        self.overrideEnv('BZR_NO_SMART_VFS', None)
76
73
        wt = self.create_test_bundle()
77
74
 
78
75
    def read_mergeable_from_url(self, url):