summaryrefslogtreecommitdiff
path: root/morphlib/util_tests.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-10-17 19:54:55 +0100
committerLars Wirzenius <liw@liw.fi>2011-10-17 19:54:55 +0100
commit6961416a28270d3483d7ffd73539294cdb874403 (patch)
tree8caed7f40daeca490974938b701781a231b02ccc /morphlib/util_tests.py
parent7bfd144ed0a1885ee9c4c4664a9bc82352af2937 (diff)
downloadmorph-6961416a28270d3483d7ffd73539294cdb874403.tar.gz
Move Builder.arch into util.arch.
This makes it easy to add a test case.
Diffstat (limited to 'morphlib/util_tests.py')
-rw-r--r--morphlib/util_tests.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/morphlib/util_tests.py b/morphlib/util_tests.py
index 5b1d5e88..6637f571 100644
--- a/morphlib/util_tests.py
+++ b/morphlib/util_tests.py
@@ -19,6 +19,14 @@ import unittest
import morphlib
+class ArchTests(unittest.TestCase):
+
+ def test(self):
+ arch = morphlib.util.arch()
+ self.assertEqual(type(arch), str)
+ self.assertNotEqual(arch, '')
+
+
class IndentTests(unittest.TestCase):
def test_returns_empty_string_for_empty_string(self):