~hopem/charms/trusty/keystone/charm-helpers-sync-precise-ipv6-haproxy

« back to all changes in this revision

Viewing changes to unit_tests/test_utils.py

  • Committer: Liam Young
  • Date: 2014-07-29 08:05:41 UTC
  • mfrom: (68.2.24 keystone)
  • Revision ID: liam.young@canonical.com-20140729080541-8twej4w7c1sv1vka
[jamespage,r=gnuoy] Add support for multiple network configuration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
        return self.config
81
81
 
82
82
    def set(self, attr, value):
83
 
            if attr not in self.config:
84
 
                raise KeyError
85
 
            self.config[attr] = value
 
83
        if attr not in self.config:
 
84
            raise KeyError
 
85
        self.config[attr] = value
86
86
 
87
87
 
88
88
class TestRelation(object):