Skip to content
Snippets Groups Projects
Commit 391abcf0 authored by Thiago Avelino's avatar Thiago Avelino
Browse files

Fix pep8 on test file, refs #42

parent ef08919f
No related branches found
No related tags found
No related merge requests found
# encoding: utf-8
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import unittest
from database import MongoDb
class MongoDbTest(unittest.TestCase):
def setUp(self):
......
# encoding: utf-8
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
import re
import unittest
......@@ -9,6 +10,7 @@ import bottle
import CepTracker
import PostmonServer
class PostmonBaseTest(object):
expected = {
......@@ -146,8 +148,10 @@ class PostmonWebJSONPTest(PostmonWebTest):
super(PostmonWebJSONPTest, self).setUp()
def get_cep(self, cep):
response = self.app.get('/cep/%s?%s=%s' %
(cep, self.jsonp_query_key, self.jsonp_func_name))
response = self.app.get(
'/cep/%s?%s=%s' % (cep,
self.jsonp_query_key,
self.jsonp_func_name))
regexp = re.compile('^%s\((.*)\);$' % self.jsonp_func_name)
json_data = re.findall(regexp, response.body)[0]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment