Skip to content

Instantly share code, notes, and snippets.

@morsik
Created February 14, 2015 15:45
Show Gist options
  • Save morsik/1c3230aa7366c737efa9 to your computer and use it in GitHub Desktop.
Save morsik/1c3230aa7366c737efa9 to your computer and use it in GitHub Desktop.
assert_test.py
def test(a):
assert type(a) == str
print("Text: {0}".format(a))
test(123)
test([1, 2, 3])
test("abc")
test(None)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment