~xubuntu-dev/ubuntu-cdimage/xubuntu-base

« back to all changes in this revision

Viewing changes to lib/cdimage/tests/test_germinate.py

  • Committer: Sean Davis
  • Date: 2018-03-28 10:32:07 UTC
  • mfrom: (1559.1.156 ubuntu-cdimage)
  • Revision ID: smd.seandavis@gmail.com-20180328103207-o6s9d6h0hxxh8eqc
Merge lp:ubuntu-cdimage rev 1715

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
            ("mythbuntu", "raring", ["mythbuntu-dev", "ubuntu-core-dev"]),
94
94
            ("xubuntu", "hardy", ["ubuntu-core-dev"]),
95
95
            ("xubuntu", "intrepid", ["xubuntu-dev", "ubuntu-core-dev"]),
96
 
            ("xubuntu-base", "wily", ["xubuntu-dev", "ubuntu-core-dev"]),
97
 
            ("lubuntu", "raring", ["lubuntu-dev", "ubuntu-core-dev"]),
 
96
            ("xubuntu-base", "bionic", ["xubuntu-dev", "ubuntu-core-dev"]),
98
97
            ("ubuntu-gnome", "raring",
99
98
             ["ubuntu-gnome-dev", "ubuntu-core-dev"]),
 
99
            ("ubuntu-budgie", "zesty",
 
100
             ["ubuntubudgie-dev", "ubuntu-core-dev"]),
100
101
            ("ubuntu-mate", "vivid",
101
102
             ["ubuntu-mate-dev", "ubuntu-core-dev"]),
102
103
            ("ubuntu-moblin-remix", "hardy", ["moblin", "ubuntu-core-dev"]),
110
111
                for owner in owners]
111
112
            self.assertEqual(sources, self.germination.seed_sources(project))
112
113
 
 
114
        for project, series, owners in (
 
115
            ("lubuntu", "raring", ["lubuntu-dev"]),
 
116
        ):
 
117
            self.config["DIST"] = series
 
118
            sources = [
 
119
                "https://git.launchpad.net/~%s/ubuntu-seeds/+git/" % owner
 
120
                for owner in owners]
 
121
            if "ubuntu-core-dev" not in owners:
 
122
                sources.append(
 
123
                    "http://bazaar.launchpad.net/~ubuntu-core-dev/"
 
124
                    "ubuntu-seeds/")
 
125
            self.assertEqual(sources, self.germination.seed_sources(project))
 
126
 
113
127
    def test_seed_sources_non_bzr(self):
114
 
        self.germination = Germination(self.config, prefer_bzr=False)
 
128
        self.germination = Germination(self.config, prefer_vcs=False)
115
129
        self.config["DIST"] = "raring"
116
130
        self.assertEqual(
117
131
            ["http://people.canonical.com/~ubuntu-archive/seeds/"],
118
132
            self.germination.seed_sources("ubuntu"))
119
133
 
120
 
    def test_use_bzr_local_seeds(self):
 
134
    def test_use_vcs_local_seeds(self):
121
135
        self.config["LOCAL_SEEDS"] = "http://www.example.org/"
122
 
        self.assertFalse(self.germination.use_bzr)
 
136
        self.assertFalse(self.germination.use_vcs)
123
137
 
124
 
    def test_use_bzr_honours_preference(self):
125
 
        self.assertTrue(self.germination.prefer_bzr)
126
 
        self.assertTrue(self.germination.use_bzr)
127
 
        self.germination.prefer_bzr = False
128
 
        self.assertFalse(self.germination.use_bzr)
 
138
    def test_use_vcs_honours_preference(self):
 
139
        self.assertTrue(self.germination.prefer_vcs)
 
140
        self.assertTrue(self.germination.use_vcs)
 
141
        self.germination.prefer_vcs = False
 
142
        self.assertFalse(self.germination.use_vcs)
129
143
 
130
144
    def test_make_index(self):
131
145
        self.config.root = self.use_temp_dir()
250
264
            "--arch", "amd64",
251
265
            "--components", "main",
252
266
            "--no-rdepends",
253
 
            "--bzr",
 
267
            "--vcs=auto",
254
268
        ]
255
269
        self.assertEqual(1, mock_check_call.call_count)
256
270
        self.assertEqual(expected_command, mock_check_call.call_args[0][0])