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

« back to all changes in this revision

Viewing changes to tests/test_tagging.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:
25
25
    )
26
26
 
27
27
 
28
 
class TestIsUpstreamTag(TestCase):
29
 
 
30
 
    def test_plain_version(self):
31
 
        self.assertFalse(tagging.is_upstream_tag('2.1'))
32
 
 
33
 
    def test_simple_upstream(self):
34
 
        self.assertTrue(tagging.is_upstream_tag('upstream-2.1'))
35
 
 
36
 
    def test_distro_upstream(self):
37
 
        self.assertTrue(tagging.is_upstream_tag('upstream-debian-2.1'))
38
 
 
39
 
    def test_git_upstream(self):
40
 
        self.assertTrue(tagging.is_upstream_tag('upstream/2.1'))
41
 
 
42
 
 
43
 
class TestUpstreamTagVersion(TestCase):
44
 
 
45
 
    def test_simple_upstream(self):
46
 
        self.assertEqual('2.1', tagging.upstream_tag_version('upstream-2.1'))
47
 
 
48
 
    def test_distro_upstream(self):
49
 
        self.assertEqual('2.1',
50
 
            tagging.upstream_tag_version('upstream-debian-2.1'))
51
 
 
52
 
    def test_git_upstream(self):
53
 
        self.assertEqual('2.1', tagging.upstream_tag_version('upstream/2.1'))
54
 
 
55
 
 
56
28
class TestDebVersionSort(TestCase):
57
29
 
58
30
    def test_sort(self):