diff options
Diffstat (limited to 'templates/python.py')
-rw-r--r-- | templates/python.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/python.py b/templates/python.py index d8905f1..5768534 100644 --- a/templates/python.py +++ b/templates/python.py @@ -43,10 +43,14 @@ _files['''{{ file.filename }}'''] = '''{{ file.contents | base64 }}''' def get_file(filename): return base64.b64decode(_files[filename]) -# Check two values for equality and give error if they +# Check two values for equality and give error if they are not equal def assert_eq(a, b): assert a == b, 'expected %r == %r' % (a, b) +# Check two values for inequality and give error if they are equal +def assert_ne(a, b): + assert a != b, 'expected %r != %r' % (a, b) + # Remember where we started from. The step functions may need to refer # to files there. srcdir = os.getcwd() |