<s> import unittest <EOL> from flask import current_app <EOL> from app import create_app , db <EOL> class BasicsTestCase ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> self . app = create_app ( '<STR_LIT>' ) <EOL> self . app_context = self . app . app_context ( ) <EOL> self . app_context . push ( ) <EOL> db . create_all ( ) <EOL> def tearDown ( self ) : <EOL> db . session . remove ( ) <EOL> db . drop_all ( ) <EOL> self . app_context . pop ( ) <EOL> def test_app_exists ( self ) : <EOL> self . assertFalse ( current_app is None ) <EOL> def test_app_is_testing ( self ) : <EOL> self . assertTrue ( current_app . config [ '<STR_LIT>' ] ) </s>
