From 0f6903ed154cb0f0dc39be0cb406176f4b556680 Mon Sep 17 00:00:00 2001 From: Ruud Date: Wed, 21 Dec 2011 17:31:34 +0100 Subject: [PATCH] Need unittesting! --- couchpotato/_tests/__init__.py | 0 couchpotato/_tests/renamer.py | 22 ++++++++++++++++++++++ couchpotato/_tests/scanner.py | 22 ++++++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 couchpotato/_tests/__init__.py create mode 100644 couchpotato/_tests/renamer.py create mode 100644 couchpotato/_tests/scanner.py diff --git a/couchpotato/_tests/__init__.py b/couchpotato/_tests/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/couchpotato/_tests/renamer.py b/couchpotato/_tests/renamer.py new file mode 100644 index 00000000..cbd8a10b --- /dev/null +++ b/couchpotato/_tests/renamer.py @@ -0,0 +1,22 @@ +import unittest + +class RenamingTests(unittest.TestCase): + """ + Test renaming of just downloaded movies + """ + + fixtures = [ + ( + '/path/to/movies/Moviename.2009.720p.bluray-groupname', + 'Unicodestring' + ), + ] + + def testUnicode(self, name, result): + pass + + def tests(self): + for (name, result) in self.fixtures: + self.testUnicode(name, result) + + diff --git a/couchpotato/_tests/scanner.py b/couchpotato/_tests/scanner.py new file mode 100644 index 00000000..9e6408bd --- /dev/null +++ b/couchpotato/_tests/scanner.py @@ -0,0 +1,22 @@ +import unittest + +class UnicodeTests(unittest.TestCase): + """ + Test unicode pathname conversion + """ + + fixtures = [ + ( + 'Unicodstring', + u'Unicodestring' + ), + ] + + def testUnicode(self, name, result): + pass + + def tests(self): + for (name, result) in self.fixtures: + self.testUnicode(name, result) + +