expected = [1, 1, 0]


@@ -1,22 +1,386 @@
-expected = %5B1, 1, 0%5D%0A
+import subprocess%0A%0A%0Adef test_happy_numbers():%0A    expected = %5B1, 1, 0%5D%0A    process = subprocess.Popen('python happy_numbers.py input.txt',%0A                               shell=True,%0A                               stdout=subprocess.PIPE)%0A    output, stderr = process.communicate()%0A    output = output.splitlines()%0A    for ex, act in map(None, expected, output):%0A        assert ex == act
 %0A

Complete test_happy_numbers.py