示例#1
0
 def test_Texts(self):
     for i in self.TESTS['3. Texts.']:
         assert checkio(i['input']) == i['answer'], i['input']
示例#2
0
 def test_Edges(self):
     for i in self.TESTS['4. Edges']:
         assert checkio(i['input']) == i['answer'], i['input']
示例#3
0
 def test_Basics(self):
     for i in self.TESTS['2. Basics']:
         assert checkio(i['input']) == i['answer'], i['input']
示例#4
0
 def test_Examples(self):
     for i in self.TESTS['1. Examples']:
         assert checkio(i['input']) == i['answer'], i['input']
	def test_checkio_with_howdoyoudo_returns_o(self):
		result = most_wanted_letter.checkio(u"How do you do?")
		self.assertEquals("o", result)
	def test_checkio_with_helloworld_returns_l(self):
		result = most_wanted_letter.checkio(u"Hello World!")
		self.assertEquals("l", result)
	def test_checkio_with_upper_case_letter_then_use_their_lower_equivalent(self):
		result = most_wanted_letter.checkio(u"Oops!")
		self.assertEquals("o", result)