A lot of blackbox tests contain an identical 'example_branch' method

Bug #130204 reported by Dan Watkins
2
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Wishlist
Unassigned

Bug Description

Many blackbox tests contain the following method (or it's run_bzr equivalent):
  def example_branch(self):
      tree = self.make_branch_and_tree('branch')
      self.build_tree_contents([('branch/hello', 'foo')])
      tree.add('hello')
      tree.commit('setup')

      self.build_tree_contents([('branch/goodbye', 'baz')])
      tree.add('goodbye')
      tree.commit('setup')
      return tree

Should this be abstracted into a test class somewhere?

Revision history for this message
Martin Pool (mbp) wrote :

> Should this be abstracted into a test class somewhere?

Yes

Changed in bzr:
importance: Undecided → Wishlist
status: New → Confirmed
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.