~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_patches.py

  • Committer: Colin Watson
  • Date: 2015-07-02 11:30:47 UTC
  • mto: This revision was merged to the branch mainline in revision 6605.
  • Revision ID: cjwatson@canonical.com-20150702113047-359s4zsi07wvfwso
UseĀ assertLength.

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
                 "+++ mod/another.py\n"]
74
74
        patches = parse_patches(
75
75
            lines.__iter__(), allow_dirty=True, keep_dirty=True)
76
 
        self.assertEqual(2, len(patches))
 
76
        self.assertLength(2, patches)
77
77
        self.assertEqual(patches[0]['dirty_head'],
78
78
                         ["=== added directory 'foo/bar'\n",
79
79
                          "=== modified file 'orig/commands.py'\n"])