/ tests / test_excluded_artists.py
test_excluded_artists.py
 1  from unittest import TestCase
 2  
 3  from blottertrax.helper.excluded_artists import ExcludedArtists
 4  from blottertrax.value_objects.parsed_submission import ParsedSubmission
 5  
 6  
 7  class TestExcludedArtists(TestCase):
 8  
 9      def test_it_should_know_excluded_artists(self):
10          self.assertTrue(ExcludedArtists.is_excluded(ParsedSubmission(True, 'url', 'various artists')))
11  
12      def test_it_should_know_excluded_artists_case_insensitive(self):
13          self.assertTrue(ExcludedArtists.is_excluded(ParsedSubmission(True, 'url', 'Anonymous')))