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

merge support for git object store-based caching mechanism.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    TestCaseInTempDir,
41
41
    UnavailableFeature,
42
42
    )
 
43
from bzrlib.transport import (
 
44
    get_transport,
 
45
    )
43
46
 
44
47
from bzrlib.plugins.git.cache import (
 
48
    DictBzrGitCache,
 
49
    IndexBzrGitCache,
45
50
    SqliteBzrGitCache,
46
 
    DictBzrGitCache,
47
51
    TdbBzrGitCache,
48
52
    )
49
53
 
159
163
        except ImportError:
160
164
            raise UnavailableFeature("Missing tdb")
161
165
        self.map = self.cache.idmap
 
166
 
 
167
 
 
168
class IndexGitShaMapTests(TestCaseInTempDir,TestGitShaMap):
 
169
 
 
170
    def setUp(self):
 
171
        TestCaseInTempDir.setUp(self)
 
172
        transport = get_transport(self.test_dir)
 
173
        transport.mkdir("index")
 
174
        self.cache = IndexBzrGitCache(transport)
 
175
        self.map = self.cache.idmap