ranger/orm/tests/unit/cms/test_configuration.py
Nicholas Jones 57a812acd1 Move services/cms tests to top level test folder
Moves tests out of subfolders so they can be picked up by tox/jenkins

Change-Id: I76369941dff73774f55dd77efd8d396fa9942d7d
2017-08-17 10:03:38 -05:00

16 lines
549 B
Python
Executable File

"""Get configuration module unittests."""
from mock import patch
from orm.tests.unit.cms import FunctionalTest
class TestGetConfiguration(FunctionalTest):
"""Main get configuration test case."""
@patch('orm.common.orm_common.utils.utils.report_config')
def test_get_configuration_success(self, mock_report):
"""Test get_configuration returns the expected value on success."""
mock_report.return_value = '12345'
response = self.app.get('/v1/orm/configuration')
self.assertEqual(response.json, '12345')