'Test is_active'

def test_is_active(self):

    test_cases = {(False, False): False, (False, None): False, (False, True): False, (None, False): False, (None, None): False, (None, True): False, (True, False): False, (True, None): False, (True, True): True}
    for ((use_nzb, enabled), result) in six.iteritems(test_cases):
        sickbeard.USE_NZBS = use_nzb
        provider = NZBProvider(u'Test    Provider')
        provider.enabled = enabled
        self.assertEqual(provider.is_active(), result)
