kyu_7.isograms package

Submodules

kyu_7.isograms.is_isogram module

Solution for -> Isograms.

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

kyu_7.isograms.is_isogram.is_isogram(string: str) bool[source]

Determine whether a string that contains only letters is an ‘isogram’.

Parameters:

string – str

Returns:

bool

kyu_7.isograms.test_is_isogram module

Test for -> ‘Isograms’.

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

class kyu_7.isograms.test_is_isogram.IsIsogramTestCase(methodName='runTest')[source]

Bases: TestCase

Testing ‘is_isogram’ function.

_classSetupFailed = False
_class_cleanups = []
test_is_isogram = None
test_is_isogram_0_Dermatoglyphics(**kw)

Testing ‘is_isogram’ function [with string=’Dermatoglyphics’, expected=True, message=’’].

Returns:

test_is_isogram_1_isogram(**kw)

Testing ‘is_isogram’ function [with string=’isogram’, expected=True, message=’’].

Returns:

test_is_isogram_2_aba(**kw)

Testing ‘is_isogram’ function [with string=’aba’, expected=False, message=’same chars may not be adjacent’].

Returns:

test_is_isogram_3_moOse(**kw)

Testing ‘is_isogram’ function [with string=’moOse’, expected=False, message=’same chars may not be same case’].

Returns:

test_is_isogram_4_isIsogram(**kw)

Testing ‘is_isogram’ function [with string=’isIsogram’, expected=False, message=’’].

Returns:

test_is_isogram_5_(**kw)

Testing ‘is_isogram’ function [with string=’’, expected=True, message=’an empty string is a valid isogram’].

Returns:

Module contents

Isograms.