def test_couplets_rhyme(self): MC = MCMarkov(self.where_the_sidewalk_ends, 1, True) new_song = MC.create_song(couplet_count=5, syllable_count=10) for couplet in new_song: endword1 = couplet[0][-1] endword2 = couplet[1][-1] self.assertTrue(rhymes_with(endword1, endword2))
def test_rhymes_within_couplet(self): MC = MCMarkov(self.where_the_sidewalk_ends, 1, True) song = MC.create_song(4, 10) for couplet in song: endword1 = couplet[0][-1] endword2 = couplet[1][-1] self.assertTrue(rhymes_with(endword1, endword2))