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

« back to all changes in this revision

Viewing changes to lib/cdimage/tests/test_config.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:
289
289
        config["DIST"] = "ubuntu-rtm/14.09"
290
290
        self.assertEqual("ubuntu-rtm/14.09", config.full_series)
291
291
 
 
292
    def test_core_series(self):
 
293
        config = Config(read=False)
 
294
        config["DIST"] = "utopic"
 
295
        self.assertEqual(None, config.core_series)
 
296
        config["DIST"] = "xenial"
 
297
        self.assertEqual("16", config.core_series)
 
298
        config["DIST"] = "yakkety"
 
299
        self.assertEqual("16", config.core_series)
 
300
        config["DIST"] = "zesty"
 
301
        self.assertEqual("16", config.core_series)
 
302
        config["DIST"] = "artful"
 
303
        self.assertEqual("16", config.core_series)
 
304
 
292
305
    def test_arches(self):
293
306
        config = Config(read=False)
294
307
        self.assertEqual([], config.arches)