~vila/uci-engine/enable-nova-and-swift

« back to all changes in this revision

Viewing changes to lander/lander/tests/test_run_worker.py

  • Committer: Evan Dandrea
  • Date: 2014-06-30 12:07:54 UTC
  • mfrom: (630 uci-engine)
  • mto: This revision was merged to the branch mainline in revision 655.
  • Revision ID: evan.dandrea@canonical.com-20140630120754-z6x5eqdahpp2qfrt
Merge with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
        with open('relation2', 'w') as f:
35
35
            f.write('image_builder: 1.2.3.41')
36
36
 
 
37
    def test_no_relations(self):
 
38
        fixtures.patch(self, run_worker, 'SERVICE_PATH', '/does not exsit')
 
39
        self.assertIsNone(run_worker.get_service_url('foo', 80))
 
40
 
37
41
    def test_get_service_url(self):
38
42
        self.assertIsNone(run_worker.get_service_url('foo', 80))
39
43
        self.assertEqual(