Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 0.3
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (25 sloc) 0.601 kb
from __future__ import division
import time
import random
import sys
from attest import Tests, Assert
sample = Tests()
def compare():
Assert(5) < 10
def contains():
print 'Checking membership...'
print >>sys.stderr, 'Expecting utter failure.'
5 in Assert([1, 2, 3])
for x in xrange(17):
def passing():
time.sleep(random.randint(1, 3) / 10)
def multi():
"""Multiple assertions on the same object."""
hello = Assert('hello')
hello.upper() == 'HELLO'
hello.capitalize() == 'hello'
Jump to Line
Something went wrong with that request. Please try again.