Behave is one of the popular Python BDD test frameworks.
Let's see how does Behave function:
Feature files are written by your Business Analyst / Sponsor / whoever with your behavior scenarios in it. It has a natural language format describing a feature or part of a feature with representative examples of expected outcomes
These Scenario steps are mapped with step implementations written in Python
And optionally, there are some environmental controls (code to run before and after steps, scenarios, features or the whole shooting match).
Let's get started with the setup of our automation test framework with Behave: