Exemple #1
0
 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'))
Exemple #2
0
 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'))
Exemple #3
0
 def test_config_parse_error(self):
     filename = path('aws_config_bad')
     with self.assertRaises(botocore.exceptions.ConfigParseError):
         raw_config_parse(filename)
Exemple #4
0
 def test_config_not_found(self):
     with self.assertRaises(botocore.exceptions.ConfigNotFound):
         loaded_config = raw_config_parse(path('aws_config_notfound'))
Exemple #5
0
 def test_config(self):
     loaded_config = raw_config_parse(path('aws_config'))
     self.assertIn('default', loaded_config)
     self.assertIn('profile "personal"', loaded_config)
Exemple #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)
Exemple #7
0
 def test_config_parse_error(self):
     filename = path('aws_config_bad')
     with self.assertRaises(botocore.exceptions.ConfigParseError):
         raw_config_parse(filename)
Exemple #8
0
 def test_config_not_found(self):
     with self.assertRaises(botocore.exceptions.ConfigNotFound):
         loaded_config = raw_config_parse(path('aws_config_notfound'))