# {{ test_type }} test for {{ context_name }} # Generated by TestAgent import pytest {% for imp in imports %} {{ imp }} {% endfor %} class {{ class_prefix }}{{ file_stem | capitalize }}Tests: """{{ class_docstring }}""" {% for test in test_cases %} def test_should_{{ test.expected_behavior }}_when_{{ test.condition }}(self): """{{ test.docstring }}""" # Arrange {% for line in test.arrange %} {{ line }} {% endfor %} # Act {% for line in test.act %} {{ line }} {% endfor %} # Assert {% for line in test.assert_ %} {{ line }} {% endfor %} {% endfor %}