~ubuntu-branches/ubuntu/precise/bzr-builddeb/precise

« back to all changes in this revision

Viewing changes to tests/test_upstream.py

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2012-01-18 01:24:21 UTC
  • mfrom: (5.1.19 sid)
  • Revision ID: package-import@ubuntu.com-20120118012421-f644zekme14td0se
Tags: 2.8.1
* New revision specifier 'upstream:'. LP: #905728
* Imports are now deferred in command definitions, to speed up
  commands like 'bzr bash-completion'. LP: #903650
* Provide merge-package functionality as a hook for 'bzr merge'.
  LP: #486075, LP: #910900
* Add pre-commit hook that warns about applied quilt patches, and can
  automatically unapply/apply all quilt patches. LP: #608670
* Automatically unapply patches before merge operations.
  LP: #815854
* Include full changelog paths that were checked in error message.
  LP: #811459
* Cope with unicode strings being specified to TarfileSource. Based on
  patch by Gediminas Paulauskas. LP: #911262
* Automatically apply patches for 3.0 (quilt) packages in 'bzr bd-do'
  and 'bzr bd'. LP: #616791
* Switch to source format '3.0 (native)'.
* Skip import tests for .tar.xz if not supported by pristine-tar.
  Closes: #655463, LP: #917112

Show diffs side-by-side

added added

removed removed

Lines of Context:
858
858
 
859
859
    def test_version(self):
860
860
        source = TarfileSource("foo-1.0.tar.gz", "1.0")
861
 
        self.assertEquals("1.0", source.get_latest_version("foo", "0.9"))
 
861
        self.assertEquals(
 
862
            "1.0", source.get_latest_version("foo", "0.9"))
 
863
 
 
864
    def test_version_unicode(self):
 
865
        source = TarfileSource(u"foo-1.0.tar.gz", u"1.0")
 
866
        latest_version = source.get_latest_version("foo", "0.9")
 
867
        self.assertEquals("1.0", latest_version)
 
868
        self.assertIsInstance(latest_version, str)
 
869
 
 
870
    def test_version_unicode_not_specified(self):
 
871
        source = TarfileSource(u"foo-1.0.tar.gz")
 
872
        latest_version = source.get_latest_version("foo", "0.9")
 
873
        self.assertEquals("1.0", latest_version)
 
874
        self.assertIsInstance(latest_version, str)
862
875
 
863
876
    def test_get_latest_version_parses(self):
864
877
        source = TarfileSource("foo-1.0.tar.gz")