~ubuntu-branches/ubuntu/utopic/bzr-builddeb/utopic

« back to all changes in this revision

Viewing changes to tests/test_quilt.py

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2012-03-03 20:47:07 UTC
  • Revision ID: package-import@ubuntu.com-20120303204707-1whi10434eiscaey
Tags: 2.8.3
* Fix patch unapplying from DirStateRevisionTrees. LP: #923688
* Bump distro-info dependency back to a recommends, to ease
  backporting.
* Cope with the deprecation of Tree.inventory in bzr/2.6. LP: #934247
* Generate xz files with the 'xz' utility rather than the Python
  'lzma' module, as the latter uses options not supported by pristine-
  xz. Closes: #660721
* Merge fix from Joel Pickett to fix typo in orig-dir option help
  description. LP: #945413
* Bump standards version to 3.9.3 (no changes).

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
        return source
55
55
 
56
56
    def test_series_all_empty(self):
57
 
        self.make_empty_quilt_dir("source")
58
 
        self.assertEquals([], quilt_series("source"))
 
57
        source = self.make_empty_quilt_dir("source")
 
58
        self.assertEquals([], quilt_series(source))
59
59
 
60
60
    def test_series_all(self):
61
 
        self.make_empty_quilt_dir("source")
 
61
        source = self.make_empty_quilt_dir("source")
62
62
        self.build_tree_contents([
63
63
            ("source/debian/patches/series", "patch1.diff\n"),
64
64
            ("source/debian/patches/patch1.diff", TRIVIAL_PATCH)])
65
 
        self.assertEquals(["patch1.diff"], quilt_series("source"))
 
65
        source.smart_add(["source/debian"])
 
66
        self.assertEquals(["patch1.diff"], quilt_series(source))
66
67
 
67
68
    def test_push_all_empty(self):
68
69
        self.make_empty_quilt_dir("source")
73
74
        quilt_pop_all("source", quiet=True)
74
75
 
75
76
    def test_applied_empty(self):
76
 
        self.make_empty_quilt_dir("source")
 
77
        source = self.make_empty_quilt_dir("source")
77
78
        self.build_tree_contents([
78
79
            ("source/debian/patches/series", "patch1.diff\n"),
79
80
            ("source/debian/patches/patch1.diff", "foob ar")])
80
 
        self.assertEquals([], quilt_applied("source"))
 
81
        self.assertEquals([], quilt_applied(source))
81
82
 
82
83
    def test_unapplied(self):
83
84
        self.make_empty_quilt_dir("source")