summaryrefslogtreecommitdiff
path: root/morphlib/buildworker_tests.py
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-01-25 14:18:36 +0000
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-01-25 14:18:36 +0000
commit7f44ebbb8fdeb066438c2ee2263c7b1061f32039 (patch)
treea70900548aaea25f598b14cb431fb59b314f4ba9 /morphlib/buildworker_tests.py
parentea5dce37921550e1d05914943f190185d6cf78be (diff)
downloadmorph-7f44ebbb8fdeb066438c2ee2263c7b1061f32039.tar.gz
Add poor checks for the output and error properties.
Diffstat (limited to 'morphlib/buildworker_tests.py')
-rw-r--r--morphlib/buildworker_tests.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/morphlib/buildworker_tests.py b/morphlib/buildworker_tests.py
index 1169da2c..6cf4b38b 100644
--- a/morphlib/buildworker_tests.py
+++ b/morphlib/buildworker_tests.py
@@ -63,3 +63,13 @@ class BuildWorkerTests(unittest.TestCase):
self.assertEqual(worker.ident, 'user@host')
self.assertEqual(worker.hostname, 'user@host')
self.assertEqual(worker.settings, app.settings)
+
+ def test_output_property(self):
+ app = DummyApp()
+ worker = buildworker.BuildWorker('local-1', 'local', app)
+ self.assertEqual(worker.output, None)
+
+ def test_error_property(self):
+ app = DummyApp()
+ worker = buildworker.BuildWorker('local-1', 'local', app)
+ self.assertTrue(len(worker.error) == 0)