~ubuntu-branches/debian/sid/bzr-builddeb/sid

« back to all changes in this revision

Viewing changes to tests/test_dh_make.py

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij, Jelmer Vernooij, Jonathan Riddell, Scott Kitterman
  • Date: 2011-07-15 12:15:22 UTC
  • Revision ID: james.westby@ubuntu.com-20110715121522-avtc0uc3uuzcg7zn
Tags: 2.7.5
[ Jelmer Vernooij ]
* New 'bzr dep3-patch' subcommand that can generate DEP-3 compliant
  patches. LP: #460576

[ Jonathan Riddell ]
* Use new set_commit_message() hook in bzr to set the commit
  message from debian/changelog and set fixed bugs in tags. LP: #707274

[ Jelmer Vernooij ]
* Add dependency on devscripts >= 2.10.59, required now that 'dch --
  package' is used. LP: #783122
* Fix support for native packages with dashes in their version in
  sources.list. LP: #796853
* Fix deprecation warnings for TestCase.failUnlessExists and
  TestCase.failIfExists in bzr 2.4.

[ Scott Kitterman ]
* Delete debian/bzr-builddeb.dirs so the long obsolete and empty
  /usr/lib/python2.4/site-packages/bzrlib/plugins/bzr-builddeb/ is no
  longer created. Closes: #631564

[ Jelmer Vernooij ]
* Add support for xz and lzma tarballs. LP: #553668
* When importing upstream component tarballs, don't repack bz2/lzma
  tarballs to gz if the package is in v3 source format. LP: #810531

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
    def test__get_tree_existing_branch(self):
10
10
        tree = self.make_branch_and_tree('.')
11
11
        new_tree = dh_make._get_tree("foo")
12
 
        self.failIfExists("foo")
 
12
        self.assertPathDoesNotExist("foo")
13
13
        self.assertEqual(tree.branch.base, new_tree.branch.base)
14
14
 
15
15
    def test__get_tree_no_existing_branch(self):
16
16
        new_tree = dh_make._get_tree("foo")
17
 
        self.failUnlessExists("foo")
 
17
        self.assertPathExists("foo")
18
18
 
19
19
    def test_import_upstream(self):
20
20
        tree = self.make_branch_and_tree('.')
34
34
                tree.branch.last_revision())
35
35
        # Has the original revision as a parent
36
36
        self.assertEqual([revid], rev_tree.get_parent_ids())
37
 
        self.failUnlessExists('a')
38
 
        self.failUnlessExists('b')
 
37
        self.assertPathExists('a')
 
38
        self.assertPathExists('b')
39
39
        self.assertEqual(open('package-0.1/a').read(), open('a').read())
40
 
        self.failUnlessExists('../package_0.1.orig.tar.gz')
 
40
        self.assertPathExists('../package_0.1.orig.tar.gz')
41
41
 
42
42
    def test_import_upstream_no_existing(self):
43
43
        self.build_tree(['package-0.1/', 'package-0.1/a', 'package-0.1/b'])
47
47
        finally:
48
48
            tf.close()
49
49
        tree = dh_make.import_upstream('package-0.1', 'package', '0.1')
50
 
        self.failUnlessExists("package")
 
50
        self.assertPathExists("package")
51
51
        rev_tree = tree.branch.repository.revision_tree(
52
52
                tree.branch.last_revision())
53
53
        # Has the original revision as a parent
54
 
        self.failUnlessExists('package/a')
55
 
        self.failUnlessExists('package/b')
 
54
        self.assertPathExists('package/a')
 
55
        self.assertPathExists('package/b')
56
56
        self.assertEqual(open('package-0.1/a').read(),
57
57
               open('package/a').read())
58
 
        self.failUnlessExists('package_0.1.orig.tar.gz')
 
58
        self.assertPathExists('package_0.1.orig.tar.gz')