
import os, sys, inspect

# use this if you want to include modules from a subfolder
def include_module_path(path):
    cmd_subfolder = os.path.realpath(os.path.abspath(os.path.join(os.path.split(inspect.getfile( inspect.currentframe() ))[0],path)))
    if cmd_subfolder not in sys.path:
        sys.path.insert(0, cmd_subfolder)
include_module_path("..")




from app_frontend import app
from nose.tools import assert_equal
from nose.tools import assert_not_equal



class TestApp(object):

    @classmethod
    def setup_class(klass):
        """This method is run once for each class before any tests are run"""
        

    @classmethod
    def teardown_class(klass):
        """This method is run once for each class _after_ all tests are run"""

    def setUp(self):
        """This method is run once before _each_ test method is executed"""
        #app['TESTING'] = True
        self.test_app = app.test_client()

    def teardown(self):
        """This method is run once after _each_ test method is executed"""

    def test_get_slash(self):
        rv = self.test_app.get('/')
        assert_equal(rv.status_code, 200)
        assert_not_equal(rv.status_code, 201)
        
    def test_get_upload(self):
        rv = self.test_app.get('/upload')
        assert_equal(rv.status_code, 200)
        assert_not_equal(rv.status_code, 201)
        
    def test_get_list(self):
        rv = self.test_app.get('/list')
        assert_equal(rv.status_code, 200)
        assert_not_equal(rv.status_code, 201)
        
    def test_get_documentation(self):
        rv = self.test_app.get('/documentation')
        assert_equal(rv.status_code, 200)
        assert_not_equal(rv.status_code, 201)
        
    def test_get_alive(self):
        rv = self.test_app.get('/alive')
        assert_equal(rv.status_code, 200)
        assert_not_equal(rv.status_code, 201)

@@ -1839,28 +1839,376 @@
 _equal(rv.status_code, 201)%0A
+        %0A    def test_post_alive_405(self):%0A        rv = self.test_app.post('/alive')%0A        assert_equal(rv.status_code, 405)%0A        assert_not_equal(rv.status_code, 201)%0A        %0A    def test_get_list_404(self):%0A        rv = self.test_app.get('/list/404')%0A        assert_equal(rv.status_code, 404)%0A        assert_not_equal(rv.status_code, 201)%0A

test cases added /BB