'Test change_use_trakt'

def test_change_use_trakt(self):

    sickbeard.traktCheckerScheduler = scheduler.Scheduler((lambda : None))
    sickbeard.USE_TRAKT = True
    config.change_use_trakt(True)
    self.assertTrue(sickbeard.USE_TRAKT)
    config.change_use_trakt('stop')
    self.assertFalse((sickbeard.USE_TRAKT and sickbeard.traktCheckerScheduler.enable))
    config.change_use_trakt('on')
    self.assertTrue((sickbeard.USE_TRAKT and sickbeard.traktCheckerScheduler.enable))
