コード例 #1
0
    def test__parse_bzr_submit(self):
        s = textwrap.dedent("""\
        Standalone tree (format: 2a)
        Location:
          branch root: .

        Related branches:
          submit branch: bzr+ssh://bazaar.launchpad.net/~bac/juju-deployer/update-store-url/
        """)
        self.assertEqual(
            repofinder._parse_bzr(s),
            'bzr+ssh://bazaar.launchpad.net/~bac/juju-deployer/update-store-url/'
        )
コード例 #2
0
    def test__parse_bzr_submit(self):
        s = textwrap.dedent("""\
        Standalone tree (format: 2a)
        Location:
          branch root: .

        Related branches:
          submit branch: bzr+ssh://bazaar.launchpad.net/~bac/juju-deployer/update-store-url/
        """)
        self.assertEqual(
            repofinder._parse_bzr(s),
            'bzr+ssh://bazaar.launchpad.net/~bac/juju-deployer/update-store-url/'
        )
コード例 #3
0
    def test__parse_bzr_push(self):
        s = textwrap.dedent("""\
        Standalone tree (format: 2a)
        Location:
          branch root: .

        Related branches:
            push branch: bzr+ssh://bazaar.launchpad.net/~tvansteenburgh/juju-deployer/1269783-force-terminate/
          submit branch: bzr+ssh://bazaar.launchpad.net/~bac/juju-deployer/update-store-url/
        """)
        self.assertEqual(
            repofinder._parse_bzr(s),
            'bzr+ssh://bazaar.launchpad.net/~tvansteenburgh/juju-deployer/1269783-force-terminate/'
        )
コード例 #4
0
    def test__parse_bzr_push(self):
        s = textwrap.dedent("""\
        Standalone tree (format: 2a)
        Location:
          branch root: .

        Related branches:
            push branch: bzr+ssh://bazaar.launchpad.net/~tvansteenburgh/juju-deployer/1269783-force-terminate/
          submit branch: bzr+ssh://bazaar.launchpad.net/~bac/juju-deployer/update-store-url/
        """)
        self.assertEqual(
            repofinder._parse_bzr(s),
            'bzr+ssh://bazaar.launchpad.net/~tvansteenburgh/juju-deployer/1269783-force-terminate/'
        )