def METHOD_NAME(self):
    check = self.mk_check()
    with open(pjoin(self.repo.location, "foo"), "wb") as f:
        f.write(b"foo\x00\xffbar")
    r = self.assertReport(check, [])
    assert isinstance(r, repo.BinaryFile)
    assert r.path == "foo"
    assert "'foo'" in str(r)