Exemplo n.º 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'))
Exemplo n.º 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'))
Exemplo n.º 3
0
 def test_config_parse_error(self):
     filename = path('aws_config_bad')
     with self.assertRaises(botocore.exceptions.ConfigParseError):
         raw_config_parse(filename)
Exemplo n.º 4
0
 def test_config_not_found(self):
     with self.assertRaises(botocore.exceptions.ConfigNotFound):
         loaded_config = raw_config_parse(path('aws_config_notfound'))
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 7
0
 def test_config_parse_error(self):
     filename = path('aws_config_bad')
     with self.assertRaises(botocore.exceptions.ConfigParseError):
         raw_config_parse(filename)
Exemplo n.º 8
0
 def test_config_not_found(self):
     with self.assertRaises(botocore.exceptions.ConfigNotFound):
         loaded_config = raw_config_parse(path('aws_config_notfound'))