| Conditions | 4 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | # -*- coding: utf-8 -*- |
||
| 9 | def test_commands(self): |
||
| 10 | """ |
||
| 11 | Test listing of tracimcli command: Tracim commands must be listed |
||
| 12 | :return: |
||
| 13 | """ |
||
| 14 | os.chdir(os.path.dirname(tracim.__file__) + '/../') |
||
| 15 | |||
| 16 | output = subprocess.check_output(["tracimcli", "-h"]) |
||
| 17 | output = output.decode('utf-8') |
||
| 18 | |||
| 19 | assert output.find('user create') > 0 |
||
| 20 | assert output.find('user update') > 0 |
||
| 21 | assert output.find('db init') > 0 |
||
| 22 |