def METHOD_NAME(self):
    path = tempfile.mktemp(prefix='mitotest')
    contents = mitogen.core.b('contents')
    self.conn.put_data(path, contents)
    self.wait_for_completion()
    with open(path, 'rb') as f:
        self.assertEqual(contents, f.read())
    os.unlink(path)