kyu_5.not_very_secure package

Submodules

kyu_5.not_very_secure.alphanumeric module

Solution for -> Not very secure.

Created by Egor Kostan. GitHub: https://github.com/ikostan

kyu_5.not_very_secure.alphanumeric.alphanumeric(password: str) bool[source]

Alphanumeric function.

The string has the following conditions to be alphanumeric: 1. At least one character (”” is not valid) 2. Allowed characters are uppercase or lowercase latin letters and digits from 0 to 9 3. No whitespaces or underscore :param password: string :return: bool

kyu_5.not_very_secure.test_alphanumeric module

Test for -> Not very secure.

Created by Egor Kostan. GitHub: https://github.com/ikostan

class kyu_5.not_very_secure.test_alphanumeric.AlphanumericTestCase(methodName='runTest')[source]

Bases: TestCase

Testing alphanumeric function.

_classSetupFailed = False
_class_cleanups = []
test_alphanumeric = None
test_alphanumeric_0_hello__world(**kw)

Testing alphanumeric function with various test inputs [with password=’hello _world’, expected=False].

The string has the following conditions to be alphanumeric only:

  1. At least one character (”” is not valid).

  2. Allowed characters are uppercase or lowercase latin letters and digits from 0 to 9.

  3. No whitespaces or underscore or special chars.

Returns:

None

test_alphanumeric_1_PassW0rd(**kw)

Testing alphanumeric function with various test inputs [with password=’PassW0rd’, expected=True].

The string has the following conditions to be alphanumeric only:

  1. At least one character (”” is not valid).

  2. Allowed characters are uppercase or lowercase latin letters and digits from 0 to 9.

  3. No whitespaces or underscore or special chars.

Returns:

None

test_alphanumeric_2__(**kw)

Testing alphanumeric function with various test inputs [with password=’ ‘, expected=False].

The string has the following conditions to be alphanumeric only:

  1. At least one character (”” is not valid).

  2. Allowed characters are uppercase or lowercase latin letters and digits from 0 to 9.

  3. No whitespaces or underscore or special chars.

Returns:

None

Module contents

Not very secure.