def test_check_rc_missing_os_auth(self):
with mock.patch('six.moves.builtins.open',
mock.mock_open(read_data='test')), \
self.assertRaises(Exception) as context:
msg = 'OS_AUTH_URL not defined in {}.'.format(self.rc_file)
self.assertTrue(msg in context)
评论列表
文章目录