~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_repository.py

  • Committer: Jelmer Vernooij
  • Date: 2011-12-22 19:54:56 UTC
  • mto: This revision was merged to the branch mainline in revision 6408.
  • Revision ID: jelmer@samba.org-20111222195456-eqsv7yqkv3m9epl8
Use update_feature_flags everywhere.

Show diffs side-by-side

added added

removed removed

Lines of Context:
166
166
 
167
167
    def test_find_format_with_features(self):
168
168
        tree = self.make_branch_and_tree('.', format='2a')
169
 
        tree.branch.repository.control_transport.put_bytes('format',
170
 
            tree.branch.repository._format.get_format_string() +
171
 
            "necessity name\n")
 
169
        tree.branch.repository.update_feature_flags({"name": "necessity"})
172
170
        found_format = repository.RepositoryFormatMetaDir.find_format(tree.bzrdir)
173
171
        self.assertIsInstance(found_format, repository.RepositoryFormatMetaDir)
174
172
        self.assertEquals(found_format.features.get("name"), "necessity")