def test_withoutXbmc_getMonitor_isAbortRequested_shouldReturnFalse(): proxy = mocks.Proxy() kodi = Kodi(proxy, None) assert kodi.getMonitor().abortRequested() is False
def test_withoutXbmc_getMonitor_waitForAbort_shouldDoNothing(): proxy = mocks.Proxy() kodi = Kodi(proxy, None) kodi.getMonitor().waitForAbort(1)
def test_getMonitor_isAbortRequested_shouldReturnTrue(): xbmc = mocks.Xbmc() proxy = mocks.Proxy() kodi = Kodi(proxy, xbmc) mocks.Xbmc.abortRequested = True assert kodi.getMonitor().abortRequested() is True