~maas-committers/maas/trunk

« back to all changes in this revision

Viewing changes to src/provisioningserver/drivers/osystem/tests/test_suse.py

  • Committer: MAAS Lander
  • Author(s): Gavin Panella, Ricardo Bánffy, Blake Rouse
  • Date: 2015-12-04 21:16:18 UTC
  • mfrom: (4489.5.167 python3)
  • Revision ID: maas_lander-20151204211618-ynwsu2b3qchid1az
[r=rbanffy][bug=][author=allenap] Port MAAS to Python 3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
"""Tests for the SUSEOS module."""
5
5
 
6
 
from __future__ import (
7
 
    absolute_import,
8
 
    print_function,
9
 
    unicode_literals,
10
 
    )
11
 
 
12
 
str = None
13
 
 
14
 
__metaclass__ = type
15
6
__all__ = []
16
7
 
17
8
from itertools import product
51
42
 
52
43
    def test_get_release_title(self):
53
44
        osystem = SUSEOS()
54
 
        release = random.choice(DISTRO_SERIES_CHOICES.keys())
 
45
        release = random.choice(list(DISTRO_SERIES_CHOICES))
55
46
        self.assertEqual(
56
47
            DISTRO_SERIES_CHOICES[release],
57
48
            osystem.get_release_title(release))