
Move uuidgen unit tests to orm/tests/ directory Change-Id: I61bb2b44a73e9c211a3b8f50e9f3dfa4287b151c
15 lines
589 B
Python
Executable File
15 lines
589 B
Python
Executable File
"""Get configuration module unittests."""
|
|
from mock import patch
|
|
from orm.services.id_generator.uuidgen.controllers.v1 import configuration as root
|
|
from orm.tests.unit.uuidgen import FunctionalTest
|
|
|
|
|
|
class TestGetConfiguration(FunctionalTest):
|
|
"""Main get configuration test case."""
|
|
|
|
@patch.object(root.utils, 'report_config', return_value='12345')
|
|
def test_get_configuration_success(self, input):
|
|
"""Test get_configuration returns the expected value on success."""
|
|
response = self.app.get('/v1/configuration')
|
|
self.assertEqual(response.json, '12345')
|