'Test restart'

def test_restart(self):

    sickbeard.PID = 123456
    sickbeard.events = Events(None)
    test_cases = {0: False, u'0': False, 123: False, u'123': False, 123456: True, u'123456': True}
    unicode_test_cases = {u'0': False, u'123': False, u'123456': True}
    for tests in (test_cases, unicode_test_cases):
        for (pid, result) in six.iteritems(tests):
            self.assertEqual(Restart.restart(pid), result)
