summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2017-02-20 17:41:03 +0000
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2017-02-20 17:41:03 +0000
commitaacf9ed52e654eb68717d1a1a971956829751a59 (patch)
tree5f73358b73d8df1bdbb791c00e00c09ee471170e /tests
parent469b1d89217b4b1307c71c92f88688cb2f2600aa (diff)
downloadlogutils-aacf9ed52e654eb68717d1a1a971956829751a59.tar.gz
Changes for 0.3.4.
Diffstat (limited to 'tests')
-rw-r--r--tests/logutil_tests.py2
-rw-r--r--tests/mytest.py2
-rw-r--r--tests/test_adapter.py3
-rw-r--r--tests/test_colorize.py3
-rw-r--r--tests/test_dictconfig.py3
-rw-r--r--tests/test_formatter.py4
-rw-r--r--tests/test_messages.py4
-rw-r--r--tests/test_queue.py3
-rw-r--r--tests/test_redis.py5
-rw-r--r--tests/test_testing.py3
10 files changed, 10 insertions, 22 deletions
diff --git a/tests/logutil_tests.py b/tests/logutil_tests.py
index 5a9996d..e86d106 100644
--- a/tests/logutil_tests.py
+++ b/tests/logutil_tests.py
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2008-2013 Vinay Sajip. See LICENSE.txt for details.
+# Copyright (C) 2008-2017 Vinay Sajip. See LICENSE.txt for details.
#
import sys
from test_testing import LoggingTest
diff --git a/tests/mytest.py b/tests/mytest.py
index 1c3fdd6..a5f40d3 100644
--- a/tests/mytest.py
+++ b/tests/mytest.py
@@ -5,5 +5,3 @@ from logutils.testing import TestHandler, Matcher
class MyTestHandler(TestHandler):
def __init__(self):
TestHandler.__init__(self, Matcher())
-
-
diff --git a/tests/test_adapter.py b/tests/test_adapter.py
index 0b7e1fa..d29bd10 100644
--- a/tests/test_adapter.py
+++ b/tests/test_adapter.py
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2008-2013 Vinay Sajip. See LICENSE.txt for details.
+# Copyright (C) 2008-2017 Vinay Sajip. See LICENSE.txt for details.
#
import logging
from logutils.adapter import LoggerAdapter
@@ -67,4 +67,3 @@ class AdapterTest(unittest.TestCase):
if __name__ == '__main__':
unittest.main()
-
diff --git a/tests/test_colorize.py b/tests/test_colorize.py
index 5ec0bb4..022b631 100644
--- a/tests/test_colorize.py
+++ b/tests/test_colorize.py
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2012-2013 Vinay Sajip. See LICENSE.txt for details.
+# Copyright (C) 2012-2017 Vinay Sajip. See LICENSE.txt for details.
#
import logging
import logutils.colorize
@@ -22,4 +22,3 @@ class ColorizeTest(unittest.TestCase):
logger.warning(u('Some unicode string with some \u015b\u0107\u017a\xf3\u0142 chars'))
finally:
logger.removeHandler(handler)
-
diff --git a/tests/test_dictconfig.py b/tests/test_dictconfig.py
index ff94a4d..3aee984 100644
--- a/tests/test_dictconfig.py
+++ b/tests/test_dictconfig.py
@@ -1,5 +1,5 @@
#
-# Copyright 2009-2013 by Vinay Sajip. See LICENSE.txt for details.
+# Copyright 2009-2017 by Vinay Sajip. See LICENSE.txt for details.
#
import logging
from logutils.adapter import LoggerAdapter
@@ -695,4 +695,3 @@ class ConfigDictTest(unittest.TestCase):
h = logging.getLogger().handlers[0]
self.assertEqual(h.__module__, 'mytest')
self.assertEqual(h.__class__.__name__, 'MyTestHandler')
-
diff --git a/tests/test_formatter.py b/tests/test_formatter.py
index 0e73ecf..0a069c7 100644
--- a/tests/test_formatter.py
+++ b/tests/test_formatter.py
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2009-2013 Vinay Sajip. See LICENSE.txt for details.
+# Copyright (C) 2009-2017 Vinay Sajip. See LICENSE.txt for details.
#
import logging
import logutils
@@ -71,5 +71,3 @@ class FormatterTest(unittest.TestCase):
self.assertTrue(f.usesTime())
f = logutils.Formatter('asctime', style='$')
self.assertFalse(f.usesTime())
-
-
diff --git a/tests/test_messages.py b/tests/test_messages.py
index 6ceed42..17f80bb 100644
--- a/tests/test_messages.py
+++ b/tests/test_messages.py
@@ -13,7 +13,7 @@ class MessageTest(unittest.TestCase):
self.assertEqual(str(m), 'Message with 2 placeholders')
m = __('Message without {0:x} {1}', 16, 'placeholders')
self.assertEqual(str(m), 'Message without 10 placeholders')
-
+
class Dummy:
pass
@@ -31,5 +31,3 @@ class MessageTest(unittest.TestCase):
ignored = object()
self.assertRaises(TypeError, __, 'Message with $num ${what}',
ignored, num=2, what='placeholders')
-
-
diff --git a/tests/test_queue.py b/tests/test_queue.py
index 5969d0e..34152e3 100644
--- a/tests/test_queue.py
+++ b/tests/test_queue.py
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2010-2013 Vinay Sajip. See LICENSE.txt for details.
+# Copyright (C) 2010-2017 Vinay Sajip. See LICENSE.txt for details.
#
import logging
from logutils.testing import TestHandler, Matcher
@@ -67,4 +67,3 @@ class QueueTest(unittest.TestCase):
if __name__ == '__main__':
unittest.main()
-
diff --git a/tests/test_redis.py b/tests/test_redis.py
index dfa7a8f..858192c 100644
--- a/tests/test_redis.py
+++ b/tests/test_redis.py
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2011-2013 Vinay Sajip. See LICENSE.txt for details.
+# Copyright (C) 2011-2017 Vinay Sajip. See LICENSE.txt for details.
#
import logging
from logutils.testing import TestHandler, Matcher
@@ -49,7 +49,7 @@ class RedisQueueTest(unittest.TestCase):
if time.time() >= maxtime:
raise Exception('unable to connect to Redis server')
sock.close()
-
+
def test_simple(self):
"Simple test of queue handling and listening."
# Just as a demo, let's log some messages.
@@ -96,4 +96,3 @@ class RedisQueueTest(unittest.TestCase):
if __name__ == '__main__':
unittest.main()
-
diff --git a/tests/test_testing.py b/tests/test_testing.py
index f01fc09..c0b7409 100644
--- a/tests/test_testing.py
+++ b/tests/test_testing.py
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2010-2013 Vinay Sajip. See LICENSE.txt for details.
+# Copyright (C) 2010-2017 Vinay Sajip. See LICENSE.txt for details.
#
import logging
from logutils.testing import TestHandler, Matcher
@@ -57,4 +57,3 @@ class LoggingTest(unittest.TestCase):
if __name__ == '__main__':
unittest.main()
-