kyu_7.substituting_variables_into_strings_padded_numbers package

Submodules

kyu_7.substituting_variables_into_strings_padded_numbers.solution module

Test for -> Substituting Variables Into Strings: Padded Numbers.

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

kyu_7.substituting_variables_into_strings_padded_numbers.solution.solution(value: int) str[source]

Complete the solution so that it returns a formatted string.

The return value should equal “Value is VALUE” where value is a 5 digit padded number. :param value: int :return: str

kyu_7.substituting_variables_into_strings_padded_numbers.test_solution module

Test for -> Substituting Variables Into Strings: Padded Numbers.

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

class kyu_7.substituting_variables_into_strings_padded_numbers.test_solution.SolutionTestCase(methodName='runTest')[source]

Bases: TestCase

Testing ‘solution’ function.

_classSetupFailed = False
_class_cleanups = []
test_solution = None
test_solution_0(**kw)

Testing ‘solution’ function with various test data [with value=0, expected=’Value is 00000’].

The function should return a formatted string. The return value should equal “Value is VALUE” where value is a 5 digit padded number. :return:

test_solution_1(**kw)

Testing ‘solution’ function with various test data [with value=5, expected=’Value is 00005’].

The function should return a formatted string. The return value should equal “Value is VALUE” where value is a 5 digit padded number. :return:

test_solution_2(**kw)

Testing ‘solution’ function with various test data [with value=109, expected=’Value is 00109’].

The function should return a formatted string. The return value should equal “Value is VALUE” where value is a 5 digit padded number. :return:

test_solution_3(**kw)

Testing ‘solution’ function with various test data [with value=1204, expected=’Value is 01204’].

The function should return a formatted string. The return value should equal “Value is VALUE” where value is a 5 digit padded number. :return:

Module contents

Substituting Variables Into Strings: Padded Numbers.