ranger/orm/tests/unit/rms/test_configuration.py
Nicholas Jones 6c4535da9d Move rms tests to top level folder
Moves unit tests under the rms directory to the root test directory

Change-Id: Idcb2d89f46669772328adb175f94a8d8bfa0ecaa
2017-09-12 14:07:08 -05:00

17 lines
641 B
Python
Executable File

"""Get configuration module unittests."""
from orm.services.region_manager.rms.controllers import configuration as root
from orm.tests.unit.rms import FunctionalTest
from mock import patch
class TestGetConfiguration(FunctionalTest):
"""Main get configuration test case."""
@patch.object(root.utils, 'report_config', return_value='12345')
@patch.object(root, 'authentication')
def test_get_configuration_success(self, mock_authentication, input):
"""Test get_configuration returns the expected value on success."""
response = self.app.get('/configuration')
self.assertEqual(response.json, '12345')