Metadata-Version: 2.0
Name: flea
Version: 9.0.1
Summary: Functional testing for WSGI: drive WSGI apps from your test suite
Home-page: https://ollycope.com/software/flea/latest/
Author: Oliver Cope
Author-email: oliver@redgecko.org
License: Apache
Keywords: wsgi,tests,testing,pytest,nose
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI
Classifier: Topic :: Software Development :: Testing
Classifier: Programming Language :: Python :: 3
Requires-Dist: fresco (>=2.0.0)
Requires-Dist: lxml
Requires-Dist: cssselect

Flea - WSGI testing
===================

Flea helps you write functional tests for WSGI applications.

Flea uses CSS selectors and XPath to give you a powerful tool to
drive and test the output of your WSGI web applications.
Here's an example of how easy it is to test a WSGI application::

	>>> from flea import Agent
	>>> r = Agent(my_wsgi_app).get('/')
	>>> print r.body
	<html>
		<body>
			<a href="/sign-in">sign in</a>
		</body>
	</html>
	>>> r = r.click('sign in')
	>>> r = r("form#login-form").fill(
	... 	username = 'root',
	... 	password = 'secret',
	... ).submit()
	>>> assert 'login successful' in r.body



