import datetime
import re

from django.test import Client, TestCase, override_settings

"""
>>> response = c.post('/login/', {'username': 'john', 'password': 'smith'})
>>> response.status_code
>>> response = c.get('/customer/details/')
>>> response.content
b'<!DOCTYPE html...'

assertTrue
assertEqual
assertRedirects
assertContains
https://docs.djangoproject.com/en/1.9/topics/testing/tools/#assertions

"""
TESTSETTINGS = {
    'TESTING': True,
    'EVENT_PUBLIC_API': True,
    # add other custom settings here
}
@override_settings(**TESTSETTINGS)
class VolunteerTestCase(TestCase):

    #fixtures = ['baserecruit_fixtures']

    def setUp(self):
        self.c = Client()

    def test_volunteer_blankvisit(self):
        xxx = self.c.get('/foo/bar/')
        self.assertContains(xxx, 'yyy')

@@ -554,17 +554,13 @@
 ass 
-Volunteer
+Smoke
 Test
@@ -683,28 +683,17 @@
 est_
-volunteer_blankvisit
+api_route
 (sel
@@ -704,19 +704,24 @@
         
-xxx
+response
  = self.
@@ -732,15 +732,21 @@
 t('/
-foo/bar
+api/v1/events
 /')%0A
@@ -768,25 +768,146 @@
 sert
-Contains(xxx, 'yyy
+Equal(response.status_code, 200)%0A%0A    def test_api_content_type(self):%0A        self.assertEqual(response%5B'content-type'%5D, 'application/json
 ')%0A

Add smoke tests for event_exim