1226
1226
def get_format(self):
1227
1227
return bzrdir.format_registry.make_bzrdir(
1228
'development0-subtree')
1230
def check_format(self, t):
1231
self.assertEqualDiff(
1232
"Bazaar development format 0 with subtree support "
1233
"(needs bzr.dev from before 1.3)\n",
1234
t.get('format').read())
1237
class TestDevelopment1(TestKnitPackNoSubtrees):
1239
def get_format(self):
1240
return bzrdir.format_registry.make_bzrdir(
1243
def check_format(self, t):
1244
self.assertEqualDiff(
1245
"Bazaar development format 1 (needs bzr.dev from before 1.3)\n",
1246
t.get('format').read())
1248
def test_supports_external_lookups(self):
1249
repo = self.make_repository('.', format=self.get_format())
1250
self.assertTrue(repo._format.supports_external_lookups)
1253
class TestDevelopment1Subtree(TestKnitPackNoSubtrees):
1255
def get_format(self):
1256
return bzrdir.format_registry.make_bzrdir(
1228
1257
'development-subtree')
1230
1259
def check_format(self, t):
1231
1260
self.assertEqualDiff(
1232
"Bazaar development format 0 with subtree support "
1261
"Bazaar development format 1 with subtree support "
1233
1262
"(needs bzr.dev from before 1.3)\n",
1234
1263
t.get('format').read())
1265
def test_supports_external_lookups(self):
1266
repo = self.make_repository('.', format=self.get_format())
1267
self.assertTrue(repo._format.supports_external_lookups)
1237
1270
class TestRepositoryPackCollection(TestCaseWithTransport):