Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_expand_wildcard_action_3(self):
result = _expand_wildcard_action('ec2:DescribeInstances')
self.assertEqual(result, ['ec2:describeinstances'])
def test_expand_wildcard_action_2(self):
result = _expand_wildcard_action('thistechdoesntexist:*')
self.assertEqual(result, ['thistechdoesntexist:*'])
def test_expand_wildcard_action(self):
result = _expand_wildcard_action(['autoscaling:*'])
self.assertEqual(sorted(result), AUTOSCALING_PERMISSIONS)