Skip to content

Instantly share code, notes, and snippets.

@dietmarw
Forked from FND/.gitignore
Created January 18, 2013 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dietmarw/4564456 to your computer and use it in GitHub Desktop.
Save dietmarw/4564456 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