Private GIT

Skip to content
Snippets Groups Projects
Commit 76754ff2 authored by echel0n's avatar echel0n
Browse files

PEP8 performed on unitests

parent 2cba62a0
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ class DBMultiTests(test.SickbeardTestDBCase):
self.db.select("SELECT * FROM tv_episodes WHERE showid = ? AND location != ''", [0000])
def test_threaded(self):
for i in xrange(20):
for i in xrange(4):
t = threading.Thread(target=self.select)
t.start()
......
......@@ -11,15 +11,14 @@ from sickbeard.exceptions import ex
sickbeard.SYS_ENCODING = 'UTF-8'
DEBUG = VERBOSE = False
class EncodingTests(unittest.TestCase):
def test_encoding(self):
strings = [u'Les Enfants De La Télé']
for s in strings:
try:
print 'Encoded: ' + ek.ss(s)
x = ek.ss(s)
assert isinstance(x, unicode)
except Exception, e:
ex(e)
......@@ -29,3 +28,4 @@ if __name__ == "__main__":
print "=================="
print "######################################################################"
suite = unittest.TestLoader().loadTestsFromTestCase(EncodingTests)
unittest.TextTestRunner(verbosity=2).run(suite)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment