Add stuff for testing talk

parent 8e28ffff
def just_another_test():
pass
def setup():
print "Module-level setup"
def teardown():
print "Module-level teardown"
class TestClassA(object):
def setup(self):
print " Class-level setup (A)"
def teardown(self):
print " Class-level teardown (A)"
def test_this(self):
print " Running test (A1)"
def test_that(self):
print " Running test (A2)"
class TestClassB(object):
def setup(self):
print " Class-level setup (B)"
def teardown(self):
print " Class-level teardown(B)"
def test_this(self):
print " Running test"
class SomeClass(object):
"""This is a class! I even gave it a docstring!
Parameters
----------
what : str
the value to echo
"""
def __init__(self, what):
self.what = what
def echo(self):
"""Echo the string twice
Returns
-------
str:
the echo string twice, space separated
"""
return self.what + " " + self.what
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment