From 79706d5c879adeca69af3d3ad170d4e8b3eb6808 Mon Sep 17 00:00:00 2001 From: armando-migliaccio Date: Sat, 21 Sep 2013 18:37:31 -0700 Subject: [PATCH] Flip to pythonic method names for context unit tests Fixes bug #1228738 Change-Id: Ia1864e64d7d2848f5892484eb5ad592a1f523fae --- neutron/tests/unit/test_neutron_context.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/neutron/tests/unit/test_neutron_context.py b/neutron/tests/unit/test_neutron_context.py index 74c656f3f..88a0e30d6 100644 --- a/neutron/tests/unit/test_neutron_context.py +++ b/neutron/tests/unit/test_neutron_context.py @@ -30,20 +30,18 @@ class TestNeutronContext(base.BaseTestCase): self.db_api_session = self._db_api_session_patcher.start() self.addCleanup(self._db_api_session_patcher.stop) - # TODO(salv-orlando): Remove camelcase for test names in this module - - def testNeutronContextCreate(self): + def test_neutron_context_create(self): cxt = context.Context('user_id', 'tenant_id') self.assertEqual('user_id', cxt.user_id) self.assertEqual('tenant_id', cxt.project_id) - def testNeutronContextToDict(self): + def test_neutron_context_to_dict(self): cxt = context.Context('user_id', 'tenant_id') cxt_dict = cxt.to_dict() self.assertEqual('user_id', cxt_dict['user_id']) self.assertEqual('tenant_id', cxt_dict['project_id']) - def testNeutronContextAdminToDict(self): + def test_neutron_context_admin_to_dict(self): self.db_api_session.return_value = 'fakesession' cxt = context.get_admin_context() cxt_dict = cxt.to_dict() @@ -52,7 +50,7 @@ class TestNeutronContext(base.BaseTestCase): self.assertIsNotNone(cxt.session) self.assertFalse('session' in cxt_dict) - def testNeutronContextAdminWithoutSessionToDict(self): + def test_neutron_context_admin_without_session_to_dict(self): cxt = context.get_admin_context_without_session() cxt_dict = cxt.to_dict() self.assertIsNone(cxt_dict['user_id'])