def test_shoutone(self): self.assertEqual(HW1.shout("Hello"), "HELLO!") # One word
def test_shouttwo(self): self.assertEqual(HW1.shout("Hello again"), "HELLO AGAIN!") # Sentence
def test_shout1(self): self.assertEqual(HW1.shout("Hey there"), "HEY THERE!")
def test_shout4(self): self.assertEqual(HW1.shout("Hey. You!"), "HEY! YOU!")
def test_shout3(self): self.assertEqual(HW1.shout("Blah!"), "BLAH!")
def test_shout3(self): self.assertEqual(HW1.shout("The Rain in Spain"), "THE RAIN IN SPAIN!")
def test_shout_question(self): self.assertEqual(HW1.shout("Hello world?"), "HELLO WORLD!")
def stest_shoutfive(self): self.assertEqual( HW1.shout("Multiple periods..."), "MULTIPLE PERIODS!!!" ) # turn punctuation into exclaimation =
def test_one(self): self.assertEqual(HW1.shout("hey you"), "HEY YOU!")
def test_ShoutNostr(self): self.assertEqual(HW1.shout(1), "")
def test_ShoutPunct(self): self.assertEqual(HW1.shout("Something wrong? Yes. No! Maybe"), "SOMETHING WRONG! YES! NO! MAYBE!")
def test_ShoutCapital(self): self.assertEqual(HW1.shout("Something wrong"), "SOMETHING WRONG!")
def test_shout5(self): self.assertEqual(HW1.shout("99 bottles of beer!"), "99 BOTTLES OF BEER!!")
def test_shout4(self): self.assertEqual(HW1.shout("the rain, in spain"), "THE RAIN, IN SPAIN!")
def test_shoutthree(self): self.assertEqual(HW1.shout("Exclaimed Hello!!!"), "EXCLAIMED HELLO!!!!") # Punctuation
def test_shoutfour(self): self.assertEqual(HW1.shout("CAPS?"), "CAPS!!") # Already in caps, add a different punctuation
def test_shout_word(self): self.assertEqual(HW1.shout("word"), "WORD!")
def test_shout_word2(self): self.assertNotEqual(HW1.shout("word"), "word")
def test_shout2(self): self.assertEqual(HW1.shout("BLAH"), "BLAH!")
def test_shout_with_nums(self): self.assertEqual(HW1.shout("I like the number 7."), "I LIKE THE NUMBER 7!")
def test_shout1(self): self.assertEqual(HW1.shout("hello"), "HELLO!")