~hopem/charm-helpers/lp1499643

« back to all changes in this revision

Viewing changes to tests/contrib/openstack/test_os_contexts.py

  • Committer: Liam Young
  • Date: 2015-09-15 17:52:15 UTC
  • mfrom: (400.2.10 charm-helpers-object)
  • Revision ID: liam.young@canonical.com-20150915175215-hpz897bqtxeymxcf
[thedac, r=gnuoy] Object oriented workload status for openstack charms

Show diffs side-by-side

added added

removed removed

Lines of Context:
2594
2594
        self.related_units.return_value = []
2595
2595
        self.assertEquals(context.NetworkServiceContext()(), {})
2596
2596
 
2597
 
    @patch.object(context, 'context_complete')
 
2597
    @patch.object(context.OSContextGenerator, 'context_complete')
2598
2598
    def test_network_service_ctxt_no_data(self, mock_context_complete):
2599
2599
        rel = FakeRelation(QUANTUM_NETWORK_SERVICE_RELATION)
2600
2600
        self.relation_ids.side_effect = rel.relation_ids