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