#!/usr/bin/python import unittest import main class Examples(unittest.TestCase): def test_example1(self): lines = [ ".#.#.#", "...##.", "#....#", "..#...", "#.#..#", "####.." ] self.assertEqual(main.solve_partn(1, lines, 4), 4) self.assertEqual(main.solve_partn(2, lines, 5), 17) if __name__ == "__main__": unittest.main()