new_contents: import unittest
  import urlparse
  
  from flask import url_for, _request_ctx_stack
  
  from cla_public import app
  from cla_public.apps import addressfinder_proxy
  from cla_public.apps.checker import api
  from cla_public.apps.checker.tests import test_integration as util
  from cla_public.libs import laalaa, zendesk
  
  
  class SmokeTests(unittest.TestCase):
  
      def setUp(self):
          self.app = app.create_app('config/testing.py')
          self.app.config['PRESERVE_CONTEXT_ON_EXCEPTION'] = False
          self.ctx = self.app.test_request_context()
          self.ctx.push()
  
      def tearDown(self):
          if _request_ctx_stack.top and _request_ctx_stack.top.preserved:
              _request_ctx_stack.top.pop()
          self.ctx.pop()
          self.ctx = None
  
      def test_can_access_addressfinder(self):
          with self.app.test_client() as client:
              addressfinder_proxy.lookup_postcode('sw1a1aa')
  
      def test_can_access_zendesk(self):
          with self.app.test_client() as client:
              zendesk.tickets()
  
      def test_can_access_laalaa(self):
          with self.app.test_client() as client:
              laalaa.find('sw1a1aa')
  
      @unittest.skip('not merged yet')
      def test_can_access_mailgun(self):
          with self.app.test_client() as client:
              self.fail()
  
      def test_can_access_backend(self):
          with self.app.test_client() as client:
              conn = api.get_api_connection()
  
      def test_can_set_category(self):
          with self.app.test_client() as client:
              response = client.get(url_for('base.get_started'))
              url = urlparse.urlparse(response.location).path
              form_class = util.get_form(url)
  
              post_data = util.form_data(form_class, {'_law_area': 'Debt'})
              response = client.post(url, data=post_data)
              self.assertEquals(response.status_code, 302)
  
subject: Add smoketests test case