test/unittest_cwctl.py
branchtls-sprint
changeset 1802 d628defebc17
parent 0 b97547f5f1fa
child 1977 606923dff11b
equal deleted inserted replaced
1801:672acc730ce5 1802:d628defebc17
    17     def setUp(self):
    17     def setUp(self):
    18         self.stream = StringIO()
    18         self.stream = StringIO()
    19         sys.stdout = self.stream
    19         sys.stdout = self.stream
    20     def tearDown(self):
    20     def tearDown(self):
    21         sys.stdout = sys.__stdout__
    21         sys.stdout = sys.__stdout__
    22         
    22 
    23     def test_list(self):
    23     def test_list(self):
    24         from cubicweb.cwctl import ListCommand
    24         from cubicweb.cwctl import ListCommand
    25         ListCommand().run([])
    25         ListCommand().run([])
    26         
    26 
    27 if __name__ == '__main__':
    27 if __name__ == '__main__':
    28     unittest_main()
    28     unittest_main()