(self, pattern)
return self.check(pattern) is not None
Apply a pattern on the current position and check
        if it patches. Doesn't touch pos.
Apply a pattern on the current position and check
        if it patches. Doesn't touch pos.
Apply a pattern on the current position and check if it patches . Doesn t touch pos .
def test(self, pattern):
        """Apply a pattern on the current position and check
        if it patches. Doesn't touch pos."""
        return self.check(pattern) is not None
def test ( self , pattern ) : return self . check ( pattern ) is not None