We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8462c1 commit ee76a07Copy full SHA for ee76a07
1 file changed
test_strategy.py
@@ -1,9 +1,18 @@
1
+"""
2
+Tests for strategy.py
3
4
+
5
import unittest
6
import subprocess
7
8
class StrategyTest(unittest.TestCase):
9
10
def test_print_output(self):
11
+ """
12
+ Verifies the print output when strategy.py is executed.
13
+ The expected_output is equivalent to the output on the command
14
+ line when running 'python strategy.py'.
15
16
output = subprocess.check_output(["python", "strategy.py"])
17
expected_output = 'Strategy Example 0\r\n\
18
Strategy Example 1 from execute 1\r\n\
0 commit comments