diff --git a/spec/python_tricks/chapter03_spec.py b/spec/python_tricks/chapter03_spec.py new file mode 100644 index 0000000..b76a131 --- /dev/null +++ b/spec/python_tricks/chapter03_spec.py @@ -0,0 +1,13 @@ +from mamba import description, it, context, fit +from expects import expect, equal, raise_error + + +def yell(text): + return text.upper() + '!' + + +with description('Chapter03') as self: + with context('functions'): + with it("first class citizens"): + result = yell('hello') + expect(result).to(equal('HELLO!'))