Skip to content

Instantly share code, notes, and snippets.

@adelcambre
Forked from FND/.gitignore
Created January 24, 2013 23:48
Show Gist options
  • Save adelcambre/4629824 to your computer and use it in GitHub Desktop.
Save adelcambre/4629824 to your computer and use it in GitHub Desktop.
.PHONY: test clean
test: clean
py.test -s --tb=short tests
clean:
find . -name "*.pyc" | xargs rm || true
rm -rf test/__pycache__ # pytest
def convert(txt):
return "<%s>" % txt.upper()
from sample import convert
def setup_module(module):
print "\n==== setting up ====\n"
def teardown_module(module):
print "\n==== tearing down ====\n"
def test_conversion():
assert convert("hello world") == "<HELLO WORLD>"
assert True == False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment