Skip to content

Instantly share code, notes, and snippets.

@half-ogre
Forked from FND/.gitignore
Created January 22, 2013 19:09
Show Gist options
  • Save half-ogre/4597393 to your computer and use it in GitHub Desktop.
Save half-ogre/4597393 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