kyu_8.the_feast_of_many_beasts package

Submodules

kyu_8.the_feast_of_many_beasts.feast module

kyu_8.the_feast_of_many_beasts.feast.feast(beast: str, dish: str) → bool[source]

A function feast that takes the animal’s name and dish as arguments and returns true or false to indicate whether the beast is allowed to bring the dish to the feast.

Assume that beast and dish are always lowercase strings, and that each has at least two letters. beast and dish may contain hyphens and spaces, but these will not appear at the beginning or end of the string. They will not contain numerals. :param beast: :param dish: :return:

kyu_8.the_feast_of_many_beasts.test_feast module

class kyu_8.the_feast_of_many_beasts.test_feast.FeastTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

Testing ‘feast’ function

test_feast()[source]

Testing ‘feast’ function with various test inputs

Testing a function feast that takes the animal’s name and dish as arguments and returns true or false to indicate whether the beast is allowed to bring the dish to the feast.

Assume that beast and dish are always lowercase strings, and that each has at least two letters. beast and dish may contain hyphens and spaces, but these will not appear at the beginning or end of the string. They will not contain numerals.

There is just one rule: the dish must start and end with the same letters as the animal’s name. For example, the great blue heron is bringing garlic naan and the chickadee is bringing chocolate cake. :return:

Module contents