def testDialogDisplayWithButtons(self):
    self.mox.StubOutWithMock(self.asr, 'ExecuteAndUnpack')

    ret = ('OK', False)

    self.asr.ExecuteAndUnpack(
        self.asr.BUTTON_DIALOG % ('prompt', 'buttons {"OK","Other"}'),
        'sb', 1).AndReturn(ret)

    self.mox.ReplayAll()
    self.assertEqual('OK', self.asr.DialogDisplay(
        'prompt', args=[1], buttons=['OK', 'Other']))
    self.mox.VerifyAll()
Test DialogDisplay() with buttons arg.
dataset/ETHPy150Open google/macops/gmacpyutil/gmacpyutil/applescript_test.py/AppleScriptRunnerTest.testDialogDisplayWithButtons