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))
114
for project, series, owners in (
115
("lubuntu", "raring", ["lubuntu-dev"]),
117
self.config["DIST"] = series
119
"https://git.launchpad.net/~%s/ubuntu-seeds/+git/" % owner
121
if "ubuntu-core-dev" not in owners:
123
"http://bazaar.launchpad.net/~ubuntu-core-dev/"
125
self.assertEqual(sources, self.germination.seed_sources(project))
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"))
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)
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)
130
144
def test_make_index(self):
131
145
self.config.root = self.use_temp_dir()