dag: use depth-first traversal to reset columns
[git-cola.git] / test / app_test.py
blobb769b8cb955ed623874d388b6bd2f8df864f6b13
1 #!/usr/bin/env python
3 from __future__ import absolute_import, division, unicode_literals
5 import argparse
6 import unittest
8 from cola import app
10 from test.helper import run_unittest
13 class AppTestCase(unittest.TestCase):
15 def test_setup_environment(self):
16 # If the function doesn't throw an exception we are happy.
17 app.setup_environment()
19 def test_add_common_arguments(self):
20 # If the function doesn't throw an exception we are happy.
21 parser = argparse.ArgumentParser()
22 app.add_common_arguments(parser)
25 def test_suite():
26 return unittest.makeSuite(AppTestCase)
28 if __name__ == "__main__":
29 run_unittest(test_suite())