Initial import to Tizen
[profile/ivi/python-twisted.git] / twisted / lore / test / test_scripts.py
1 # Copyright (c) Twisted Matrix Laboratories.
2 # See LICENSE for details.
3
4 """
5 Tests for the command-line interface to lore.
6 """
7
8 from twisted.trial.unittest import TestCase
9 from twisted.scripts.test.test_scripts import ScriptTestsMixin
10 from twisted.python.test.test_shellcomp import ZshScriptTestMixin
11
12
13
14 class ScriptTests(TestCase, ScriptTestsMixin):
15     """
16     Tests for all one of lore's scripts.
17     """
18     def test_lore(self):
19         self.scriptTest("lore/lore")
20
21
22
23 class ZshIntegrationTestCase(TestCase, ZshScriptTestMixin):
24     """
25     Test that zsh completion functions are generated without error
26     """
27     generateFor = [('lore', 'twisted.lore.scripts.lore.Options')]