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