Skip to content

Commit ee76a07

Browse files
author
thinwybk
committed
add: docstring for strategy test file
1 parent f8462c1 commit ee76a07

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

test_strategy.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
1+
"""
2+
Tests for strategy.py
3+
"""
4+
15
import unittest
26
import subprocess
37

48
class StrategyTest(unittest.TestCase):
59

610
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+
"""
716
output = subprocess.check_output(["python", "strategy.py"])
817
expected_output = 'Strategy Example 0\r\n\
918
Strategy Example 1 from execute 1\r\n\

0 commit comments

Comments
 (0)