'Test change_process_automatically'

def test_change_process_auto(self):

    sickbeard.autoPostProcessorScheduler = scheduler.Scheduler((lambda : None))
    sickbeard.PROCESS_AUTOMATICALLY = True
    config.change_process_automatically(True)
    self.assertTrue(sickbeard.PROCESS_AUTOMATICALLY)
    config.change_process_automatically('stop')
    self.assertFalse((sickbeard.PROCESS_AUTOMATICALLY and sickbeard.autoPostProcessorScheduler.enable))
    config.change_process_automatically('on')
    self.assertTrue((sickbeard.PROCESS_AUTOMATICALLY and sickbeard.autoPostProcessorScheduler.enable))
