Exemple #1
0
 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'})
Exemple #2
0
 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'})
Exemple #3
0
 def test_parse_bad_format_storage(self):
     properties = context.parse_storage(self.bad_storage)
     self.assertListEqual(sorted(['uri', 'path', 'params']),
                          sorted(properties.keys()))
Exemple #4
0
 def test_parse_bad_format_storage(self):
     properties = context.parse_storage(self.bad_storage)
     self.assertListEqual(sorted(['uri', 'path', 'params']),
                          sorted(properties.keys()))