Modern, Pythonic test automation
Latest commit b1ad455 Mar 30, 2013 @bradleyayers bradleyayers Merge pull request #140 from bfirsh/0.6-docs
Documentation and changelog for 0.6
Failed to load latest commit information.
docs Fix spacing. Mar 30, 2013
.gitignore Ignore Sublime Text 2 project files Apr 18, 2012
AUTHORS.rst Add myself to AUTHORS Apr 23, 2012
CHANGES.rst First pass at a changelog for 0.6. Ref #131 Mar 30, 2013
LICENSE Include 2011 in copyright notices Apr 19, 2011
README.rst sampletests assert_hook Jan 19, 2011
setup.cfg clean up sphinx setup May 22, 2011
tox.ini pass args from tox May 21, 2011


Modern Test Automation for Python

Attest is a test automation framework for Python emphasising modern idioms and conventions.

from attest import Tests
math = Tests()

def arithmetics():
    """Ensure that the laws of physics are in check."""
    assert 1 + 1 == 2

if __name__ == '__main__':


  • Collect tests using decorators instead of matching names against a regexp
  • Set up fixtures as context managers that can be combined and reused
  • Use the assert statement with arbitrary expressions that are inspected on failure
  • Scan for collections by type rather than by name
  • Treat tests as Python packages rather than script files