~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_workingtree.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:
245
245
 
246
246
    def test_find_format_with_features(self):
247
247
        tree = self.make_branch_and_tree('.', format='2a')
248
 
        tree.control_transport.put_bytes('format',
249
 
            tree._format.get_format_string() + "necessity name\n")
 
248
        tree.update_feature_flags({"name": "necessity"})
250
249
        found_format = workingtree.WorkingTreeFormatMetaDir.find_format(
251
250
            tree.bzrdir)
252
251
        self.assertIsInstance(found_format, workingtree.WorkingTreeFormat)