~cbjchen/charms/trusty/heat/heat-ha-rebased

« back to all changes in this revision

Viewing changes to unit_tests/test_heat_relations.py

  • Committer: Corey Bryant
  • Date: 2015-11-02 21:54:02 UTC
  • mfrom: (57.1.1 heat)
  • Revision ID: corey.bryant@canonical.com-20151102215402-bc1g2qdzan5542ih
[james-pages,r=corey.bryant] Add tox support for lint and unit tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
                                             'uuid', 'heat-api',
64
64
                                             'heat-api-cfn',
65
65
                                             'heat-engine'], fatal=True)
66
 
        self.execd_preinstall.assert_called()
 
66
        self.assertTrue(self.execd_preinstall.called)
67
67
 
68
68
    @patch.object(relations, 'configure_https')
69
69
    def test_config_changed_no_upgrade(self, mock_configure_https):
145
145
        configs.complete_contexts = MagicMock()
146
146
        configs.complete_contexts.return_value = []
147
147
        relations.amqp_changed()
148
 
        self.log.assert_called()
 
148
        self.assertTrue(self.log.called)
149
149
 
150
150
    @patch.object(relations, 'CONFIGS')
151
151
    def test_relation_broken(self, configs):