Skip to content

Commit 391abcf

Browse files
committed
Fix pep8 on test file, refs #42
1 parent ef08919 commit 391abcf

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

test/database_test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
# encoding: utf-8
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
23
import unittest
34

45
from database import MongoDb
56

7+
68
class MongoDbTest(unittest.TestCase):
79

810
def setUp(self):

test/postmon_test.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# encoding: utf-8
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
23
import json
34
import re
45
import unittest
@@ -9,6 +10,7 @@
910
import CepTracker
1011
import PostmonServer
1112

13+
1214
class PostmonBaseTest(object):
1315

1416
expected = {
@@ -146,8 +148,10 @@ def setUp(self):
146148
super(PostmonWebJSONPTest, self).setUp()
147149

148150
def get_cep(self, cep):
149-
response = self.app.get('/cep/%s?%s=%s' %
150-
(cep, self.jsonp_query_key, self.jsonp_func_name))
151+
response = self.app.get(
152+
'/cep/%s?%s=%s' % (cep,
153+
self.jsonp_query_key,
154+
self.jsonp_func_name))
151155

152156
regexp = re.compile('^%s\((.*)\);$' % self.jsonp_func_name)
153157
json_data = re.findall(regexp, response.body)[0]

0 commit comments

Comments
 (0)