space cleanup

This commit is contained in:
mdipierro
2019-02-17 17:20:38 -08:00
parent bf23e7bb0e
commit f06c60b963
23 changed files with 27 additions and 38 deletions
-1
View File
@@ -4,4 +4,3 @@ if PY2:
from gluon.contrib import ipaddress from gluon.contrib import ipaddress
else: else:
import ipaddress import ipaddress
-1
View File
@@ -998,4 +998,3 @@ class template(object):
else: else:
return context return context
return wrapper return wrapper
-1
View File
@@ -1,4 +1,3 @@
from .test_http import * from .test_http import *
from .test_contenttype import * from .test_contenttype import *
from .test_fileutils import * from .test_fileutils import *
-1
View File
@@ -196,4 +196,3 @@ class TestAppAdmin(unittest.TestCase):
data['id'] = '1' data['id'] = '1'
request._vars = data request._vars = data
self.assertRaises(HTTP, self.run_function) self.assertRaises(HTTP, self.run_function)
-1
View File
@@ -142,4 +142,3 @@ class TestCache(unittest.TestCase):
self.assertEqual(a.as_csv(), h.as_csv()) self.assertEqual(a.as_csv(), h.as_csv())
db.t_a.drop() db.t_a.drop()
db.close() db.close()
-2
View File
@@ -20,5 +20,3 @@ class TestCron(unittest.TestCase):
def test_crondance(self): def test_crondance(self):
#TODO update crondance to return something #TODO update crondance to return something
crondance(os.getcwd()) crondance(os.getcwd())
-1
View File
@@ -259,4 +259,3 @@ class testResponse(unittest.TestCase):
response.meta['meta_dict'] = {'tag_name':'tag_value'} response.meta['meta_dict'] = {'tag_name':'tag_value'}
response.include_meta() response.include_meta()
self.assertEqual(response.body.getvalue(), '\n<meta tag_name="tag_value" />\n') self.assertEqual(response.body.getvalue(), '\n<meta tag_name="tag_value" />\n')
+2 -2
View File
@@ -95,7 +95,7 @@ class TestTranslations(unittest.TestCase):
'Hello World') 'Hello World')
self.assertEqual(str(T.M('**Hello World**')), self.assertEqual(str(T.M('**Hello World**')),
'<strong>Hello World</strong>') '<strong>Hello World</strong>')
# sub_tuple testing # sub_tuple testing
self.assertEqual(str(T('%s %%{shop}', 1)), self.assertEqual(str(T('%s %%{shop}', 1)),
'1 shop') '1 shop')
self.assertEqual(str(T('%s %%{shop}', 2)), self.assertEqual(str(T('%s %%{shop}', 2)),
@@ -192,7 +192,7 @@ class TestTranslations(unittest.TestCase):
'2') '2')
self.assertEqual(str(T('%i%%{?st?[0]}', 0)), self.assertEqual(str(T('%i%%{?st?[0]}', 0)),
'0') '0')
# sub_dict testing # sub_dict testing
self.assertEqual(str(T('%(key)s %%{is(key)}', dict(key=1))), self.assertEqual(str(T('%(key)s %%{is(key)}', dict(key=1))),
'1 is') '1 is')
self.assertEqual(str(T('%(key)i %%{is(key)}', dict(key=2))), self.assertEqual(str(T('%(key)i %%{is(key)}', dict(key=2))),
-1
View File
@@ -71,4 +71,3 @@ class TestRecfile(unittest.TestCase):
self.assertFalse(recfile.exists(filename)) self.assertFalse(recfile.exists(filename))
self.assertRaises(IOError, recfile.remove, filename) self.assertRaises(IOError, recfile.remove, filename)
self.assertRaises(IOError, recfile.open, filename, "r") self.assertRaises(IOError, recfile.open, filename, "r")
-1
View File
@@ -1555,4 +1555,3 @@ class TestRouter(unittest.TestCase):
load(rdict=router_collide) load(rdict=router_collide)
self.assertEqual(filter_url('http://welcome.com/welcome/admin/index', self.assertEqual(filter_url('http://welcome.com/welcome/admin/index',
domain='welcome', out=True), "/welcome/admin") domain='welcome', out=True), "/welcome/admin")
-1
View File
@@ -1380,4 +1380,3 @@ class TestExpose(unittest.TestCase):
def test_not_authorized(self): def test_not_authorized(self):
with self.assertRaises(HTTP): with self.assertRaises(HTTP):
self.make_expose(base='inside', show='link_to_file3') self.make_expose(base='inside', show='link_to_file3')