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