def test_parse_storage(self): properties = context.parse_storage(self.good_storage) self.assertListEqual(sorted(['uri', 'path', 'params']), sorted(properties.keys())) eq_(properties['uri'], 'localhost:1234') self.assertListEqual(properties['path'], ['some', 'where']) self.assertDictEqual(properties['params'], {'fake': 'true'})
def test_parse_bad_format_storage(self): properties = context.parse_storage(self.bad_storage) self.assertListEqual(sorted(['uri', 'path', 'params']), sorted(properties.keys()))