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

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

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

        Playlist.validate_repeat(test)