'tests swagger.json. Also writes the file so that auto-build
of gh-pages can run'

def test_swagger_json(self):

    resp = self.app.get('/api/v1/swagger.json')
    self.assertIn('event', resp.data)
    data = json.loads(resp.data)
    fp = open('static/uploads/swagger.json', 'w')
    fp.write(json.dumps(data, indent=2, sort_keys=True))
    fp.close()
