kyu_5.not_very_secure package

Submodules

kyu_5.not_very_secure.alphanumeric module

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

The string has the following conditions to be alphanumeric:

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

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

3. No whitespaces / underscore :param password: :return:

kyu_5.not_very_secure.test_alphanumeric module

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

Bases: unittest.case.TestCase

Testing alphanumeric function

test_alphanumeric()[source]

Testing alphanumeric function with various test inputs

The string has the following conditions to be alphanumeric only:

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

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

3. No whitespaces / underscore / special chars :return:

Module contents