summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDidier Raboud <odyx@debian.org>2012-05-04 13:41:25 +0200
committerDidier Raboud <odyx@debian.org>2012-05-07 19:28:54 +0200
commit8931d361916d22e5a0c4a7345a9a6bbd80ef80ee (patch)
tree15d5bb15bf1665c8f89d7ebacdf406c2e126969d /test
parent13cdb58298888ce2fa85c7bc15985ed05aa928f8 (diff)
PyUT: Add initial unittest framework, limit possible python versions to >= 2.7.
Limiting the supported python versions to >= 2.6 permits to avoid unneccessary code to permit the use of unittest in all python 2 and 3 versions such as: import sys if sys.version_info[0] >= 3: import unittest else: import unittest2 as unittest python2.7 is the default version in Debian unstable since Sep 2011.
Diffstat (limited to 'test')
-rw-r--r--test/test_lsb_release.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/test_lsb_release.py b/test/test_lsb_release.py
new file mode 100644
index 0000000..bc927f8
--- /dev/null
+++ b/test/test_lsb_release.py
@@ -0,0 +1,15 @@
+#!/usr/bin/python
+import unittest
+
+import lsb_release as lr
+
+import random
+import string
+
+class TestLSBRelease(unittest.TestCase):
+
+ def test_void(self):
+ self.assertTrue('Void test')
+
+if __name__ == '__main__':
+ unittest.main()