def METHOD_NAME(self) -> None:
    config = {"root_restrict_files": [".git", ".foo"]}
    expect = [
        ("directory", ".git", True),
        ("file", ".foo", True),
        ("directory", ".foo", True),
        (None, None, False),
        ("directory", ".svn", False),
        ("file", "baz", False),
    ]
    self.runWatchTests(config=config, expect=expect)