<s> import unittest <EOL> from flask import current_app <EOL> from flask . ext . testing import TestCase <EOL> from project import app <EOL> class TestDevelopmentConfig ( TestCase ) : <EOL> def create_app ( self ) : <EOL> app . config . from_object ( '<STR_LIT>' ) <EOL> return app <EOL> def test_app_is_development ( self ) : <EOL> self . assertTrue ( app . config [ '<STR_LIT>' ] is True ) <EOL> self . assertTrue ( app . config [ '<STR_LIT>' ] is False ) <EOL> self . assertTrue ( app . config [ '<STR_LIT>' ] is True ) <EOL> class TestTestingConfig ( TestCase ) : <EOL> def create_app ( self ) : <EOL> app . config . from_object ( '<STR_LIT>' ) <EOL> return app <EOL> def test_app_is_testing ( self ) : <EOL> self . assertTrue ( current_app . config [ '<STR_LIT>' ] ) <EOL> self . assertTrue ( app . config [ '<STR_LIT>' ] is False ) <EOL> self . assertTrue ( app . config [ '<STR_LIT>' ] == <NUM_LIT:1> ) <EOL> self . assertTrue ( app . config [ '<STR_LIT>' ] is False ) <EOL> class TestProductionConfig ( TestCase ) : <EOL> def create_app ( self ) : <EOL> app . config . from_object ( '<STR_LIT>' ) <EOL> return app <EOL> def test_app_is_production ( self ) : <EOL> self . assertTrue ( app . config [ '<STR_LIT>' ] is False ) <EOL> self . assertTrue ( app . config [ '<STR_LIT>' ] is False ) <EOL> self . assertTrue ( app . config [ '<STR_LIT>' ] is True ) <EOL> self . assertTrue ( app . config [ '<STR_LIT>' ] == <NUM_LIT> ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
