"""
Ensure the environment is sane
"""

# Do not add your own tests to this file. This file is intended for the sole
# purpose of confirming your environment was properly set-up


import unittest
import webtest

from google.appengine.api import memcache
from google.appengine.ext import db
from google.appengine.ext import testbed

from src import main


class SanityTest(unittest.TestCase):

    def setUp(self):
        self.testbed = testbed.Testbed()
        self.testbed.activate()
        self.testbed.init_datastore_v3_stub()
        self.testbed.init_memcache_stub()

    def tearDown(self):
        self.testbed.deactivate()

    def test_sanity(self):
        self.assertTrue(True)


class HandlerTest(unittest.TestCase):

    def setUp(self):
        self.testapp = webtest.TestApp(main.application)

    def test_sample_request(self):
        response = self.testapp.get('/')
        self.assertEqual(response.status_int, 200)


if __name__ == '__main__':
    unittest.main()

@@ -325,16 +325,25 @@
 estbed%0A%0A
+try:%0A    
 from src
@@ -355,16 +355,84 @@
 rt main%0A
+    TEST_HANDLER = True%0Aexcept ImportError:%0A    TEST_HANDLER = False
 %0A%0Aclass 
@@ -763,17 +763,37 @@
 (True)%0A%0A
-%0A
+if TEST_HANDLER:%0A    
 class Ha
@@ -815,32 +815,36 @@
 est.TestCase):%0A%0A
+    
     def setUp(se
@@ -840,32 +840,36 @@
 ef setUp(self):%0A
+    
         self.tes
@@ -910,24 +910,28 @@
 ation)%0A%0A    
+  
+  
 def test_sam
@@ -941,32 +941,36 @@
 _request(self):%0A
+    
         response
@@ -994,16 +994,20 @@
 et('/')%0A
+    
         

Make handler test optional