diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-02-15 08:35:43 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-02-15 09:00:18 +0200 |
commit | e975bd5b30eb7f3f46cba32e16ca813e110bc497 (patch) | |
tree | 9e33c085db46629672b566bfd7712c002a2c6ed3 /templates | |
parent | b0c3b2f3158611caf3f7bcc4ce8b277abde1e035 (diff) | |
download | subplot-e975bd5b30eb7f3f46cba32e16ca813e110bc497.tar.gz |
Change: require docgen, codegen to fail if document has no title
sp-filter already has a test that requires it to work without a title.
Diffstat (limited to 'templates')
-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() |