~cbjchen/charms/trusty/cinder/remove_stale_key

« back to all changes in this revision

Viewing changes to unit_tests/test_utils.py

  • Committer: James Page
  • Date: 2014-03-31 11:11:01 UTC
  • mfrom: (27.5.8 cinder)
  • mto: This revision was merged to the branch mainline in revision 33.
  • Revision ID: james.page@canonical.com-20140331111101-rg38s7pc2zbm8hk8
[yolanda] Add support for postgresql
Refactor templates to use includes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
 
56
56
 
57
57
class CharmTestCase(unittest.TestCase):
 
58
 
58
59
    def setUp(self, obj, patches):
59
60
        super(CharmTestCase, self).setUp()
60
61
        self.patches = patches
75
76
 
76
77
 
77
78
class TestConfig(object):
 
79
 
78
80
    def __init__(self):
79
81
        self.config = get_default_config()
80
82
 
94
96
 
95
97
 
96
98
class TestRelation(object):
 
99
 
97
100
    def __init__(self, relation_data={}):
98
101
        self.relation_data = relation_data
99
102