~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_patches.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-02-02 05:31:19 UTC
  • mfrom: (3946.4.1 patch_stats)
  • Revision ID: pqm@pqm.ubuntu.com-20090202053119-adgabjjho5g49v76
(thumper) Refactor patch stat generation to make int values
        accessible.

Show diffs side-by-side

added added

removed removed

Lines of Context:
250
250
        for patch in patches:
251
251
            patch_files.append((patch.oldname, patch.newname))
252
252
        self.assertEqual(patch_files, filenames)
 
253
 
 
254
    def testStatsValues(self):
 
255
        """Test the added, removed and hunks values for stats_values."""
 
256
        patch = parse_patch(self.datafile("diff"))
 
257
        self.assertEqual((299, 407, 48), patch.stats_values())