コード例 #1
0
ファイル: test_context.py プロジェクト: Coding4ufn/intuition
 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'})
コード例 #2
0
ファイル: test_context.py プロジェクト: trodjr/intuition
 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'})
コード例 #3
0
ファイル: test_context.py プロジェクト: Coding4ufn/intuition
 def test_parse_bad_format_storage(self):
     properties = context.parse_storage(self.bad_storage)
     self.assertListEqual(sorted(['uri', 'path', 'params']),
                          sorted(properties.keys()))
コード例 #4
0
ファイル: test_context.py プロジェクト: trodjr/intuition
 def test_parse_bad_format_storage(self):
     properties = context.parse_storage(self.bad_storage)
     self.assertListEqual(sorted(['uri', 'path', 'params']),
                          sorted(properties.keys()))