~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/model/tests/test_sourcepackagerecipe.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2012-01-03 06:00:47 UTC
  • mfrom: (14403.2.7 recipe-format-0.4)
  • Revision ID: launchpad@pqm.canonical.com-20120103060047-qlvyjzp97wac8s5f
[r=gmb][bug=891928] Add support for version 0.4 of the recipe format.

Show diffs side-by-side

added added

removed removed

Lines of Context:
921
921
        self.check_recipe_branch(
922
922
            child_branch, "zam", self.merged_branch.bzr_identity, revspec="2")
923
923
 
 
924
    def test_builds_recipe_without_debversion(self):
 
925
        recipe_text = '''\
 
926
        # bzr-builder format 0.4
 
927
        %(base)s
 
928
        nest bar %(nested)s baz
 
929
        ''' % self.branch_identities
 
930
        base_branch = self.get_recipe(recipe_text)
 
931
        self.check_base_recipe_branch(
 
932
            base_branch, self.base_branch.bzr_identity, num_child_branches=1,
 
933
            deb_version=None)
 
934
        child_branch, location = base_branch.child_branches[0].as_tuple()
 
935
        self.assertEqual("baz", location)
 
936
        self.check_recipe_branch(
 
937
            child_branch, "bar", self.nested_branch.bzr_identity)
 
938
 
924
939
 
925
940
class RecipeDateLastModified(TestCaseWithFactory):
926
941
    """Exercises the situations where date_last_modified is updated."""