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