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_is_valid_region(self):
assert_true(is_valid_region(""), "Empty regions are allowed")
assert_true(is_valid_region("us-east-1"), "This region is allowed")
assert_false(is_valid_region("us-east-1f"), "This is an AZ, not a region")
assert_false(is_valid_region("us-east-*"), "No regexes in regions")
assert_false(is_valid_region("us"), "Not a valid region")
assert_false(is_valid_region("us-east-1-f"), "Not a valid region")
assert_true(is_valid_region("us-gov-east-1"), "This is a valid govcloud region")
def test_is_valid_region(self):
assert_true(is_valid_region(""), "Empty regions are allowed")
assert_true(is_valid_region("us-east-1"), "This region is allowed")
assert_false(is_valid_region("us-east-1f"), "This is an AZ, not a region")
assert_false(is_valid_region("us-east-*"), "No regexes in regions")
assert_false(is_valid_region("us"), "Not a valid region")
assert_false(is_valid_region("us-east-1-f"), "Not a valid region")
assert_true(is_valid_region("us-gov-east-1"), "This is a valid govcloud region")
def test_is_valid_region(self):
assert_true(is_valid_region(""), "Empty regions are allowed")
assert_true(is_valid_region("us-east-1"), "This region is allowed")
assert_false(is_valid_region("us-east-1f"), "This is an AZ, not a region")
assert_false(is_valid_region("us-east-*"), "No regexes in regions")
assert_false(is_valid_region("us"), "Not a valid region")
assert_false(is_valid_region("us-east-1-f"), "Not a valid region")
assert_true(is_valid_region("us-gov-east-1"), "This is a valid govcloud region")
def test_is_valid_region(self):
assert_true(is_valid_region(""), "Empty regions are allowed")
assert_true(is_valid_region("us-east-1"), "This region is allowed")
assert_false(is_valid_region("us-east-1f"), "This is an AZ, not a region")
assert_false(is_valid_region("us-east-*"), "No regexes in regions")
assert_false(is_valid_region("us"), "Not a valid region")
assert_false(is_valid_region("us-east-1-f"), "Not a valid region")
assert_true(is_valid_region("us-gov-east-1"), "This is a valid govcloud region")
def test_is_valid_region(self):
assert_true(is_valid_region(""), "Empty regions are allowed")
assert_true(is_valid_region("us-east-1"), "This region is allowed")
assert_false(is_valid_region("us-east-1f"), "This is an AZ, not a region")
assert_false(is_valid_region("us-east-*"), "No regexes in regions")
assert_false(is_valid_region("us"), "Not a valid region")
assert_false(is_valid_region("us-east-1-f"), "Not a valid region")
assert_true(is_valid_region("us-gov-east-1"), "This is a valid govcloud region")
def test_is_valid_region(self):
assert_true(is_valid_region(""), "Empty regions are allowed")
assert_true(is_valid_region("us-east-1"), "This region is allowed")
assert_false(is_valid_region("us-east-1f"), "This is an AZ, not a region")
assert_false(is_valid_region("us-east-*"), "No regexes in regions")
assert_false(is_valid_region("us"), "Not a valid region")
assert_false(is_valid_region("us-east-1-f"), "Not a valid region")
assert_true(is_valid_region("us-gov-east-1"), "This is a valid govcloud region")
def test_is_valid_region(self):
assert_true(is_valid_region(""), "Empty regions are allowed")
assert_true(is_valid_region("us-east-1"), "This region is allowed")
assert_false(is_valid_region("us-east-1f"), "This is an AZ, not a region")
assert_false(is_valid_region("us-east-*"), "No regexes in regions")
assert_false(is_valid_region("us"), "Not a valid region")
assert_false(is_valid_region("us-east-1-f"), "Not a valid region")
assert_true(is_valid_region("us-gov-east-1"), "This is a valid govcloud region")