[SCM] GUI front-end for Debian Live. branch, master, updated. d6ae12437ff380db2b87363283adc42142dc4637
Chris Lamb
chris at chris-lamb.co.uk
Fri Apr 11 02:13:56 UTC 2008
The following commit has been merged in the master branch:
commit e524a41347ad6d5f142ffaf1806dad47454f6fbe
Author: Chris Lamb <chris at chris-lamb.co.uk>
Date: Fri Apr 11 01:09:00 2008 +0100
test_utils.py: Test get_build_dir()
Signed-off-by: Chris Lamb <chris at chris-lamb.co.uk>
diff --git a/tests/test_utils.py b/tests/test_utils.py
new file mode 100755
index 0000000..59686db
--- /dev/null
+++ b/tests/test_utils.py
@@ -0,0 +1,17 @@
+#!/usr/bin/env python
+
+import unittest
+import os
+
+import sys
+sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
+
+from DebianLive.utils import get_build_dir
+
+class TestUtils(unittest.TestCase):
+ def testBuildDir(self):
+ self.assertEqual(type(get_build_dir()), str)
+ self.assert_(len(get_build_dir()) > 0)
+
+if __name__ == "__main__":
+ unittest.main()
--
GUI front-end for Debian Live.
More information about the debian-live-changes
mailing list