-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Griffin Austin edited this page Oct 14, 2019
·
2 revisions
Welcome to the pytesting wiki!
Install using pip:
$ pip install pytesting
Create and run a simple test suite
from pytesting import testing
# Define test suite
class Testsuite(testing.Test):
def test_foo(self):
self.assert_equal("foo", 5)
def test_bar(self):
self.assert_equal(1, 1)
# Create and run test suite
test_suite = Testsuite()
test_suite.run_tests()Note: each test case MUST begin with test_