def test_notifications_enabled(self): PushNotificationConfig(enabled=True).save() self.assertTrue(PushNotificationConfig.is_enabled())
def test_notifications_defaults(self): self.assertFalse(PushNotificationConfig.is_enabled())
def test_notifications_defaults(self): self.assertFalse(PushNotificationConfig.is_enabled())
def push_notification_enabled(): """ Returns whether the push notification feature is enabled. """ return PushNotificationConfig.is_enabled()
def test_notifications_enabled(self): PushNotificationConfig(enabled=True).save() self.assertTrue(PushNotificationConfig.is_enabled())