def test_eliminate_value_if_valid(self): norvig = Norvig(self.mtrxhandler) actual = norvig._eliminate( self.grid_possible_values, self.field, self.value_valid )[self.field] self.assertTrue(self.value_valid not in actual)
def test_eliminate_false_if_cotradiction_met(self): norvig = Norvig(self.mtrxhandler) self.assertFalse( norvig._eliminate( self.grid_contradiction, self.field, self.value_with_contradiction ) )