# Path: app.py



import os
import sys
import unittest
from flask import render_template_string
from app import app

    Flask TestCase
    http://flask.pocoo.org/snippets/26/
"""

sys.path.insert(0, os.path.dirname(os.path.abspath(os.path.dirname(__file__))))




class TestCase(unittest.TestCase):

    def create_app(self):
        """
        Create your Flask app here, with any
        configuration you need
        """
        raise NotImplementedError

    def __call__(self, result=None):
       """
       Does the required setup, doing it here
       means you don't have to call super.setUp
       in subclasses.
       """
       self._pre_setup()
       super(TestCase, self).__call__(result)
       self._post_tearDown()

    def _pre_setup(self):

# Path: app.py



# Path: utilities/flask_testcase.py
import os
import sys
import unittest
from flask import render_template_string
from app import app


    Flask TestCase
    http://flask.pocoo.org/snippets/26/
"""

sys.path.insert(0, os.path.dirname(os.path.abspath(os.path.dirname(__file__))))




class TestCase(unittest.TestCase):

    def create_app(self):
        """
        Create your Flask app here, with any
        configuration you need
        """
        raise NotImplementedError

    def __call__(self, result=None):
       """
       Does the required setup, doing it here
       means you don't have to call super.setUp
       in subclasses.
       """
       self._pre_setup()
       super(TestCase, self).__call__(result)
       self._post_tearDown()

    def _pre_setup(self):

       self.app = self.create_app()