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