The Lettuce library is used to test code before it is released to production systems.
Lettuce is meant to describe Behavior Driven Development.
The idea behind lettuce is that before coding up any functionality, you first describe your what you want your functions to do with written descriptions. Then following your descriptions, you write out the core steps of what you expect from the function. After doing so, you implement the functionality you originally described and test the results.
You can repeat the cycle above, each time adding additional descriptions. After each iteration, you develop more confidence in the correctness of your code.
Reference: