Python/Tests
From charlesreid1
basic strategy for writing tests: use pytest
methods and files named test_ or _test will be searched for unit tests when you run pytest on the command line.
Basic code:
import unittest
class MyTest(unittest.TestCase):
def __init__(self):
pass
setup
teardown
test1
test2