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_account_id(self):
assert_true(is_valid_account_id(""), "Empty account id is allowed")
assert_true(is_valid_account_id("000000001234"), "This account id is allowed")
assert_false(is_valid_account_id("abc"), "Account id must have 12 digits")
assert_false(
is_valid_account_id("00000000123?"), "Regex not allowed in account id"
)
def test_is_valid_account_id(self):
assert_true(is_valid_account_id(""), "Empty account id is allowed")
assert_true(is_valid_account_id("000000001234"), "This account id is allowed")
assert_false(is_valid_account_id("abc"), "Account id must have 12 digits")
assert_false(
is_valid_account_id("00000000123?"), "Regex not allowed in account id"
)
def test_is_valid_account_id(self):
assert_true(is_valid_account_id(""), "Empty account id is allowed")
assert_true(is_valid_account_id("000000001234"), "This account id is allowed")
assert_false(is_valid_account_id("abc"), "Account id must have 12 digits")
assert_false(
is_valid_account_id("00000000123?"), "Regex not allowed in account id"
)
def test_is_valid_account_id(self):
assert_true(is_valid_account_id(""), "Empty account id is allowed")
assert_true(is_valid_account_id("000000001234"), "This account id is allowed")
assert_false(is_valid_account_id("abc"), "Account id must have 12 digits")
assert_false(
is_valid_account_id("00000000123?"), "Regex not allowed in account id"
)