Esempio n. 1
0
    def test_playlist_validate_shuffle_raises_exception_if_shuffle_not_bool(
            self):
        test = 5
        exc = None

        try:
            Playlist.validate_shuffle(test)
        except Exception as err:
            exc = err

        self.assertIsNotNone(exc)
        self.assertEqual(str(exc), 'Shuffle must be of "bool" type.')
Esempio n. 2
0
    def test_playlist_validate_shuffle_passes_with_correct_input(self):
        test = True

        Playlist.validate_shuffle(test)