422
422
repo_dir = bzrdir.BzrDirMetaFormat1().initialize('repository')
423
423
repo = repository.RepositoryFormat7().initialize(repo_dir)
424
424
target_format = repository.RepositoryFormatKnit1()
427
425
converter = repository.CopyConverter(target_format)
429
431
repo = repo_dir.open_repository()
430
432
self.assertTrue(isinstance(target_format, repo._format.__class__))