'If the file exists, the content is matched against the given matcher.
If it matches, then the overall matcher also matches.'

@given(content=binary(average_size=10))
def test_file_exists_content_match(self, content):

    path = self.make_temporary_path()
    path.setContent(content)
    self.assertThat(path, file_contents(Equals(content)))
