class TestPartialSolution(TestCase): def setUp(self): pieces = PIECES[:5] pieces[3] = pieces[3].spun(1) self.first_four = PartialSolution(reshape(pieces[:4])) self.first_five = PartialSolution(reshape(pieces)) def test_check(self): # first four pieces fit, but fifth doesn't self.assertTrue(self.first_four.check()) self.assertFalse(self.first_five.check())
def setUp(self): pieces = PIECES[:5] pieces[3] = pieces[3].spun(1) self.first_four = PartialSolution(reshape(pieces[:4])) self.first_five = PartialSolution(reshape(pieces))