'Test the "check_settings" task.'

@ddt.data(['lms', {}], ['lms', {'settings': 'aws'}], ['cms', {}], ['cms', {'settings': 'aws'}])
@ddt.unpack
def test_check_settings(self, system, options):

    settings = options.get('settings', Env.DEVSTACK_SETTINGS)
    call_task('pavelib.servers.check_settings', args=[system, settings])
    self.assertEquals(self.task_messages, ["echo    'import    {system}.envs.{settings}'    |    python    manage.py    {system}    --settings={settings}    shell    --plain    --pythonpath=.".format(system=system, settings=settings)])
