def test_check_not_available(self, mocked_get_vlc): """ Check that when the "vlc" module is not available, then VLC is set as unavailable """ # GIVEN: A mocked out get_vlc() method and a VlcPlayer instance mocked_get_vlc.return_value = None vlc_player = VlcPlayer(None) # WHEN: vlc is_available = vlc_player.check_available() # THEN: VLC should NOT be available self.assertFalse(is_available)
def check_not_available_test(self, mocked_get_vlc): """ Check that when the "vlc" module is not available, then VLC is set as unavailable """ # GIVEN: A mocked out get_vlc() method and a VlcPlayer instance mocked_get_vlc.return_value = None vlc_player = VlcPlayer(None) # WHEN: vlc is_available = vlc_player.check_available() # THEN: VLC should NOT be available self.assertFalse(is_available)
def test_check_available(mocked_get_vlc): """ Check that when the "vlc" module is available, then VLC is set as available """ # GIVEN: A mocked out get_vlc() method and a VlcPlayer instance mocked_get_vlc.return_value = MagicMock() vlc_player = VlcPlayer(None) # WHEN: vlc is_available = vlc_player.check_available() # THEN: VLC should be available assert is_available is True
def test_check_available(self, mocked_get_vlc): """ Check that when the "vlc" module is available, then VLC is set as available """ # GIVEN: A mocked out get_vlc() method and a VlcPlayer instance mocked_get_vlc.return_value = MagicMock() vlc_player = VlcPlayer(None) # WHEN: vlc is_available = vlc_player.check_available() # THEN: VLC should be available self.assertTrue(is_available)