File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env python
2
+ # -*- coding: utf-8 -*-
3
+ import unittest
4
+ from structural .facade import TestRunner
5
+
6
+
7
+ class TestRunnerFacilities (unittest .TestCase ):
8
+
9
+ def setUp (self ):
10
+ self .runner = TestRunner ()
11
+ self .average_result = """###### In Test 1 ######
12
+ Setting up
13
+ Running test
14
+ Tearing down
15
+ Test Finished
16
+
17
+ ###### In Test 2 ######
18
+ Setting up
19
+ Running test
20
+ Tearing down
21
+ Test Finished
22
+
23
+ ###### In Test 3 ######
24
+ Setting up
25
+ Running test
26
+ Tearing down
27
+ Test Finished"""
28
+
29
+ def test_bunch_launch (self ):
30
+ import sys
31
+ from io import StringIO
32
+ out = StringIO ()
33
+ sys .stdout = out
34
+ self .runner .runAll ()
35
+ output = out .getvalue ().strip ()
36
+ self .assertEqual (output , self .average_result )
37
+
38
+
You can’t perform that action at this time.
0 commit comments