def METHOD_NAME(self):
    timeout = 1.0
    pipe = Pipe()
    pipe.write('abcdefg')
    thread = in_thread(pipe.write, ('hijklmn',))
    thread.join(timeout)
    self.assertEqual(True, thread.is_alive())
    pipe.close()
    with self.assertRaises(RuntimeError):
        pipe.write('opqrstu')
    thread.join(timeout)
    self.assertEqual(False, thread.is_alive())