Example #1
0
 def test_remove_credits(self):
     self.assertEqual(
         lyrics.remove_credits("""It's close to midnight
                                  Lyrics brought by example.com"""),
         "It's close to midnight")
     self.assertEqual(
         lyrics.remove_credits("""Lyrics brought by example.com"""), "")
     text = """Look at all the shit that i done bought her
               See lyrics ain't nothin 
               if the beat aint crackin"""
     self.assertEqual(lyrics.remove_credits(text), text)
Example #2
0
    def test_remove_credits(self):
        self.assertEqual(
            lyrics.remove_credits("""It's close to midnight
                                     Lyrics brought by example.com"""),
            "It's close to midnight")
        self.assertEqual(
            lyrics.remove_credits("""Lyrics brought by example.com"""), "")

        # don't remove 2nd verse for the only reason it contains 'lyrics' word
        text = """Look at all the shit that i done bought her
                  See lyrics ain't nothin
                  if the beat aint crackin"""
        self.assertEqual(lyrics.remove_credits(text), text)
Example #3
0
 def test_remove_credits(self):
     self.assertEqual(
         lyrics.remove_credits("""It's close to midnight
                                  Lyrics brought by example.com"""),
         "It's close to midnight"
     )
     self.assertEqual(
         lyrics.remove_credits("""Lyrics brought by example.com"""),
         ""
     )
     text = """Look at all the shit that i done bought her
               See lyrics ain't nothin
               if the beat aint crackin"""
     self.assertEqual(lyrics.remove_credits(text), text)
Example #4
0
    def test_remove_credits(self):
        self.assertEqual(
            lyrics.remove_credits(
                """It's close to midnight
                                     Lyrics brought by example.com"""
            ),
            "It's close to midnight",
        )
        self.assertEqual(lyrics.remove_credits("""Lyrics brought by example.com"""), "")

        # don't remove 2nd verse for the only reason it contains 'lyrics' word
        text = """Look at all the shit that i done bought her
                  See lyrics ain't nothin
                  if the beat aint crackin"""
        self.assertEqual(lyrics.remove_credits(text), text)