Lettuce (http://lettuce.it) is a BDD tool built for Python.
The Should DSL (http://www.should-dsl.info) provides a simpler way to write assertions for Thens.
This recipe shows how to install Lettuce and Should DSL. Then, we will write a test story. Finally, we will wire it into our shopping cart application using the Should DSL to exercise our code.
For this recipe, we will be using the shopping cart application shown at the beginning of this chapter. We also need to install Lettuce and its dependencies:
pip install lettuce
pip install should_dsl
With the following steps, we will use the Should DSL to write more ...