コード例 #1
0
ファイル: test_config.py プロジェクト: Lumida/botocore
 def test_config(self):
     loaded_config = raw_config_parse(path('aws_config'))
     self.assertIn('default', loaded_config)
     self.assertIn('profile "personal"', loaded_config)
     # A _path key is inserted that is the full path of the
     # config file.
     self.assertEqual(loaded_config['_path'], path('aws_config'))
コード例 #2
0
ファイル: test_config.py プロジェクト: nrdlngr/botocore
 def test_config(self):
     loaded_config = raw_config_parse(path('aws_config'))
     self.assertIn('default', loaded_config)
     self.assertIn('profile "personal"', loaded_config)
     # A _path key is inserted that is the full path of the
     # config file.
     self.assertEqual(loaded_config['_path'], path('aws_config'))
コード例 #3
0
ファイル: test_config.py プロジェクト: Lumida/botocore
 def test_config_parse_error(self):
     filename = path('aws_config_bad')
     with self.assertRaises(botocore.exceptions.ConfigParseError):
         raw_config_parse(filename)
コード例 #4
0
ファイル: test_config.py プロジェクト: Lumida/botocore
 def test_config_not_found(self):
     with self.assertRaises(botocore.exceptions.ConfigNotFound):
         loaded_config = raw_config_parse(path('aws_config_notfound'))
コード例 #5
0
ファイル: test_config.py プロジェクト: asvetlov/botocore
 def test_config(self):
     loaded_config = raw_config_parse(path('aws_config'))
     self.assertIn('default', loaded_config)
     self.assertIn('profile "personal"', loaded_config)
コード例 #6
0
 def test_config(self):
     loaded_config = raw_config_parse(path('aws_config'))
     self.assertIn('default', loaded_config)
     self.assertIn('profile "personal"', loaded_config)
コード例 #7
0
 def test_config_parse_error(self):
     filename = path('aws_config_bad')
     with self.assertRaises(botocore.exceptions.ConfigParseError):
         raw_config_parse(filename)
コード例 #8
0
 def test_config_not_found(self):
     with self.assertRaises(botocore.exceptions.ConfigNotFound):
         loaded_config = raw_config_parse(path('aws_config_notfound'))