summaryrefslogtreecommitdiffstats
path: root/cnucnu
diff options
context:
space:
mode:
Diffstat (limited to 'cnucnu')
-rwxr-xr-xcnucnu/tests/config_test.py4
-rwxr-xr-xcnucnu/tests/mail_test.py6
-rwxr-xr-xcnucnu/tests/package_list_test.py6
3 files changed, 8 insertions, 8 deletions
diff --git a/cnucnu/tests/config_test.py b/cnucnu/tests/config_test.py
index 4fb1985..f2db60e 100755
--- a/cnucnu/tests/config_test.py
+++ b/cnucnu/tests/config_test.py
@@ -40,7 +40,7 @@ class ConfigTest(unittest.TestCase):
c.update(new)
self.assertEqual(c.config, expected)
-
+
def testComplexUpdate(self):
old = {0: 0, "d": {0: 0, 1: 1, 2: 2}, 2: {}}
new = {1: 1, "d": {1: {0: 0}, 2: None}}
@@ -50,7 +50,7 @@ class ConfigTest(unittest.TestCase):
c.update(new)
self.assertEqual(c.config, expected)
-
+
if __name__ == "__main__":
suite = unittest.TestLoader().loadTestsFromTestCase(ConfigTest)
unittest.TextTestRunner(verbosity=2).run(suite)
diff --git a/cnucnu/tests/mail_test.py b/cnucnu/tests/mail_test.py
index 2947368..9fc3007 100755
--- a/cnucnu/tests/mail_test.py
+++ b/cnucnu/tests/mail_test.py
@@ -35,14 +35,14 @@ class MailTest(unittest.TestCase):
receipient = "ß <l@example.com>"
subject = "ä"
message = "Ö"
-
+
m = Message(sender, receipient, subject, message)
self.assertEqual(m.receipient, receipient)
self.assertEqual(m.sender, sender)
message_string = 'MIME-Version: 1.0\nContent-Type: text/plain; charset="utf-8"\nContent-Transfer-Encoding: base64\nSubject: =?utf-8?b?w6Q=?=\nFrom: =?utf-8?b?TXIuIFVtbMOkdXQ=?= <u@example.com>\nTo: =?utf-8?b?w58=?= <l@example.com>\n\nw5Y=\n'
self.assertEqual(message_string, m.as_string())
-
-
+
+
if __name__ == "__main__":
suite = unittest.TestLoader().loadTestsFromTestCase(MailTest)
unittest.TextTestRunner(verbosity=2).run(suite)
diff --git a/cnucnu/tests/package_list_test.py b/cnucnu/tests/package_list_test.py
index a19052a..246ef53 100755
--- a/cnucnu/tests/package_list_test.py
+++ b/cnucnu/tests/package_list_test.py
@@ -34,13 +34,13 @@ class PackageTest(unittest.TestCase):
p = Package("name", "regex", "url", Repository())
p._upstream_versions = [0, 1]
p._latest_upstream = 1
- p._rpm_diff = 0
+ p._rpm_diff = 0
p.regex = "new regex"
self.assertEqual(p.regex, "new regex")
self.assertEqual(p._upstream_versions, None)
self.assertEqual(p._latest_upstream, None)
self.assertEqual(p._rpm_diff, None)
-
+
def testUrlUpdate(self):
p = Package("name", "regex", "url", Repository())
p._upstream_versions = [0, 1]
@@ -51,7 +51,7 @@ class PackageTest(unittest.TestCase):
self.assertEqual(p._upstream_versions, None)
self.assertEqual(p._latest_upstream, None)
self.assertEqual(p._rpm_diff, None)
-
+
if __name__ == "__main__":
suite = unittest.TestLoader().loadTestsFromTestCase(PackageTest)
unittest.TextTestRunner(verbosity=2).run(suite)