Trivial: Change the namespace for the utils in testing

The shorter form makes more complex tests slightly easier to follow

Change-Id: Iac7f21f5e28bd1ea4fb1713ca98bf3f28d6e5cc3
This commit is contained in:
Tony Breeds 2018-07-25 16:15:35 +10:00
parent 51a07ff74f
commit 3f68496369

View File

@ -17,7 +17,7 @@ from __future__ import unicode_literals
import testtools
from openstack_election.tests import fixtures as election_fixtures
import openstack_election.utils
from openstack_election import utils
class ElectionTestCase(testtools.TestCase):
@ -38,10 +38,10 @@ class TestGerritUtils(ElectionTestCase):
}
}}
self.assertEqual(openstack_election.utils.candidate_files(review),
self.assertEqual(utils.candidate_files(review),
['candidates/some/file'])
def test_name2dir(self):
name = "nova"
dirname = "Nova"
self.assertEqual(dirname, openstack_election.utils.name2dir(name))
self.assertEqual(dirname, utils.name2dir(name))