'Check that bumper is (not)shown if ENABLE_VIDEO_BUMPER is (False)True
Assume that bumper settings are correct.'

@patch('xmodule.video_module.bumper_utils.get_bumper_settings')
def test_is_bumper_enabled(self, get_bumper_settings):

    self.FEATURES.update({'SHOW_BUMPER_PERIODICITY': 1, 'ENABLE_VIDEO_BUMPER': True})
    get_bumper_settings.return_value = {'video_id': 'edx_video_id', 'transcripts': {}}
    with override_settings(FEATURES=self.FEATURES):
        self.assertTrue(bumper_utils.is_bumper_enabled(self.item_descriptor))
    self.FEATURES.update({'ENABLE_VIDEO_BUMPER': False})
    with override_settings(FEATURES=self.FEATURES):
        self.assertFalse(bumper_utils.is_bumper_enabled(self.item_descriptor))
