'``make_file`` creates a file with the given content and permissions.'

@given(content=binary(average_size=20), perms=permissions)
def test_make_file(self, content, perms):

    path = self.make_temporary_path()
    make_file(path, content, perms)
    self.addCleanup(path.remove)
    try:
        self.assertThat(path, with_permissions(Equals(perms)))
    finally:
        path.chmod(384)
    self.assertThat(path, file_contents(Equals(content)))
