<s> import os <EOL> import shutil <EOL> import tempfile <EOL> import unittest <EOL> from mockito import * <EOL> from nose_parameterized import parameterized <EOL> from ice . gridproviders . consolegrid_provider import ConsoleGridProvider <EOL> from ice . gridproviders . local_provider import LocalProvider <EOL> from ice import settings <EOL> class SettingsTests ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> pass <EOL> @ parameterized . expand ( [ <EOL> ( "<STR_LIT>" , [ LocalProvider ] ) , <EOL> ( "<STR_LIT>" , [ ConsoleGridProvider ] ) , <EOL> ( "<STR_LIT>" , [ LocalProvider , ConsoleGridProvider ] ) , <EOL> ( "<STR_LIT>" , [ ConsoleGridProvider , LocalProvider ] ) <EOL> ] ) <EOL> def test_image_provider ( self , spec , classes ) : <EOL> config = mock ( ) <EOL> config . provider_spec = spec <EOL> result = settings . image_provider ( config ) <EOL> self . assertEqual ( classes , map ( lambda p : p . __class__ , result . providers ) ) </s>
