def test_match(self):
        with open(path.join(TEST_DATA_DIR, 'input1.txt')) as f:
            patterns, _input = Input.parse(f)
            output = Output(io.StringIO())

            pm = PathMatcher(patterns, _input, output)
            pm.match()

        matches = output.stream.getvalue()
        matches = [match for match in matches.split('\n') if match]
        no_matches = [match for match in matches if match == 'NO MATCH']

        assert len(matches) == 5
        assert len(no_matches) == 2