def test_english_humanise_sentences(s): """Checks trickier human title casing""" s.assertEquals(u"Buffy the Vampire Slayer: The Album", ht(u"Buffy the vampire slayer: the album")) s.assertEquals(u"Killing Is My Business... and Business Is Good!", ht(u"Killing is my business... And business is good!")) s.assertEquals(u"Herbie Hancock - The Definitive", ht(u"herbie hancock - the definitive"))
def test_english_humanise_sentences(s): """Checks trickier human title casing""" s.assertEquals(u"Buffy the Vampire Slayer: The Album", ht(u"Buffy the vampire slayer: the album")) s.assertEquals(u"Killing Is My Business... and Business Is Good!", ht(u"Killing is my business... And business is good!")) s.assertEquals(u"Herbie Hancock - The Definitive", ht(u"herbie hancock - the definitive"))
def test_english_human_title_case(s): s.assertEquals(u"System of a Down", ht(u"System Of A Down")) s.assertEquals(u"The Man with the Golden Gun", ht(u"The Man With The Golden gun")) s.assertEquals(u"Live and Let Die", ht(u"Live And Let Die")) # Updated to match modifications to is/are/am rules: s.assertEquals(u"The Vitamins Are in My Fresh California Raisins", ht(u"the vitamins are in my fresh california raisins")) s.assertEquals(u"Dig In", ht(u"dig in")) s.assertEquals(u"In da Club", ht(u"in da club")) # See Issue 616 s.assertEquals(u" Dodgy Are the Spaces ", ht(u" dodgy are the spaces ")) s.assertEquals(u"Space: The Final Frontier", ht(u"Space: the final frontier")) s.assertEquals(u"- Out of Space", ht(u"- out Of space"))
def test_english_human_title_case(s): s.assertEquals(u"System of a Down", ht(u"System Of A Down")) s.assertEquals(u"The Man with the Golden Gun", ht(u"The Man With The Golden gun")) s.assertEquals(u"Live and Let Die", ht(u"Live And Let Die")) # Updated to match modifications to is/are/am rules: s.assertEquals(u"The Vitamins Are in My Fresh California Raisins", ht(u"the vitamins are in my fresh california raisins")) s.assertEquals(u"Dig In", ht(u"dig in")) s.assertEquals(u"In da Club", ht(u"in da club")) # See Issue 616 s.assertEquals(u" Dodgy Are the Spaces ", ht(u" dodgy are the spaces ")) s.assertEquals(u"Space: The Final Frontier", ht(u"Space: the final frontier")) s.assertEquals(u"- Out of Space", ht(u"- out Of space"))
def test_tricky_apostrophes(s): s.assertEquals(u"Guns 'n' Roses", ht(u"Guns 'n' roses")) s.assertEquals(u"Scarlett O'Hara", ht(u"scarlett o'hara")) s.assertEquals(u"Scarlett O'Hara", ht(u"Scarlett O'hara")) s.assertEquals(u"No Life 'til Leather", ht(u"no life 'til leather"))
def test_tricky_apostrophes(s): s.assertEquals(u"Guns 'n' Roses", ht(u"Guns 'n' roses")) s.assertEquals(u"Scarlett O'Hara", ht(u"scarlett o'hara")) s.assertEquals(u"Scarlett O'Hara", ht(u"Scarlett O'hara")) s.assertEquals(u"No Life 'til Leather", ht(u"no life 'til leather"))