How to use the parliament.statement.is_valid_account_id function in parliament

To help you get started, we’ve selected a few parliament examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github duo-labs / parliament / tests / unit / test_resource_formatting.py View on Github external
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"
        )
github duo-labs / parliament / tests / unit / test_resource_formatting.py View on Github external
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"
        )
github duo-labs / parliament / tests / unit / test_resource_formatting.py View on Github external
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"
        )
github duo-labs / parliament / tests / unit / test_resource_formatting.py View on Github external
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"
        )