<s> import os <EOL> import unittest <EOL> from aiorest_ws . db . backends . sqlite3 . managers import SQLiteManager <EOL> from aiorest_ws . conf import Settings , ENVIRONMENT_VARIABLE <EOL> class SettingsTestCase ( unittest . TestCase ) : <EOL> def __set_user_settings ( self , settings ) : <EOL> os . environ . setdefault ( ENVIRONMENT_VARIABLE , settings ) <EOL> def test_base_settings ( self ) : <EOL> settings = Settings ( ) <EOL> default_settings = [ <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' <EOL> ] <EOL> for setting_name in default_settings : <EOL> self . assertTrue ( hasattr ( settings , setting_name ) ) <EOL> def test_setup_manager ( self ) : <EOL> os . environ . setdefault ( <EOL> ENVIRONMENT_VARIABLE , "<STR_LIT>" <EOL> ) <EOL> settings = Settings ( ) <EOL> self . assertTrue ( hasattr ( settings , '<STR_LIT>' ) ) <EOL> self . assertIsInstance ( settings . DATABASES [ '<STR_LIT:default>' ] [ '<STR_LIT>' ] , <EOL> SQLiteManager ) </s>
