ranger/orm/tests/unit/fms/test_configuration.py
Nicholas Jones c86c404c31 Move flavor_manager tests to top level folder
Moves all tests under orm/services/flavor_manager to top level tests
folder, and makes changes to get them passing.

Change-Id: I6e1bff032a1a90e60529bd0ed42f1c0b822687df
2017-08-22 13:10:08 -05:00

16 lines
549 B
Python
Executable File

"""Get configuration module unittests."""
from orm.tests.unit.fms import FunctionalTest
from mock import patch
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')