def METHOD_NAME(self) -> None:
    root = self.mkdtemp()
    self.touchRelative(root, "foo.c")
    os.mkdir(os.path.join(root, "subdir"))
    self.touchRelative(root, "subdir", "bar.txt")
    self.watchmanCommand("watch", root)
    self.assertFileListsEqual(
        self.watchmanCommand(
            "query", root, {"expression": ["suffix", "c"], "fields": ["name"]}
        )["files"],
        ["foo.c"],
    )
    with self.assertRaises(pywatchman.WatchmanError) as ctx:
        self.watchmanCommand("query", root, {"expression": "suffix"})
    self.assertRegex(str(ctx.exception), "Expected array for 'suffix' term")