~ionutbalutoiu/charms/trusty/neutron-api/next

« back to all changes in this revision

Viewing changes to unit_tests/test_utils.py

  • Committer: Liam Young
  • Date: 2014-06-18 16:48:38 UTC
  • Revision ID: liam.young@canonical.com-20140618164838-771ydz1x42wrwu3j
more tests, more coverage

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
    def set(self, relation_data):
96
96
        self.relation_data = relation_data
97
97
 
98
 
    def get(self, attr=None, unit=None, rid=None):
99
 
        if attr is None:
 
98
    def get(self, attribute=None, unit=None, rid=None):
 
99
        if attribute is None:
100
100
            return self.relation_data
101
 
        elif attr in self.relation_data:
102
 
            return self.relation_data[attr]
 
101
        elif attribute in self.relation_data:
 
102
            return self.relation_data[attribute]
103
103
        return None
104
104
 
105
105