1 from unittest
import TestCase
3 from pseudoku
.grid
import Grid
5 class SudokuTestCase(TestCase
):
6 """TestCase subclass that provides some convenience methods for testing
10 def assertSolvable(self
, grid
, msg
=None):
11 """Asserts that the given puzzle, when run through Grid.solve(),
12 produces a filled grid.
14 grid may be either a Grid object or a string.
18 grid
= Grid
.from_string(grid
)
21 self
.assertTrue(grid
.filled
, msg
)