~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_workingtree.py

  • Committer: Patch Queue Manager
  • Date: 2011-12-30 15:51:59 UTC
  • mfrom: (6213.1.63 update-feature-flags)
  • Revision ID: pqm@pqm.ubuntu.com-20111230155159-qrgafyvytuitiq8u
(jelmer) Add {Repository, Branch, WorkingTree,
 BzrDir}.update_feature_flags methods. (Jelmer Vernooij)

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)