tests: leverage pytest in utils_test
[git-cola.git] / test / app_test.py
blob6c68ac5053bce71498b50aa2afb06c784d52b139
1 from __future__ import absolute_import, division, unicode_literals
2 import argparse
4 from cola import app
7 def test_setup_environment():
8 # If the function doesn't throw an exception we are happy.
9 assert hasattr(app, 'setup_environment')
10 app.setup_environment()
13 def test_add_common_arguments():
14 # If the function doesn't throw an exception we are happy.
15 parser = argparse.ArgumentParser()
16 assert hasattr(app, 'add_common_arguments')
17 app.add_common_arguments(parser)