Beispiel #1
0
	def test_empty(self):
		#P is missing
		text = ''
		answer = contains_all_letters(text)
		self.assertEqual(answer,False)
Beispiel #2
0
	def test_just_special_chars(self):
		#P is missing
		text = '!@#$%^&*()-=<>?{}|;/.,78900-=<>?{}|;/.,78900'
		answer = contains_all_letters(text)
		self.assertEqual(answer,False)
Beispiel #3
0
	def test_missing_letter(self):
		#P is missing
		text = 'abc...DEFGHIJK///LMNO   QR2STU:V""WXYZ'
		answer = contains_all_letters(text)
		self.assertEqual(answer,False)
Beispiel #4
0
	def test_sentence(self):
		text = 'The quick brown fox jumps over the lazy dog'
		answer = contains_all_letters(text)
		self.assertEqual(answer,True)
Beispiel #5
0
	def test_special_chars(self):
		text = 'abc...DEFGHIJK///LMNOP   QR2STU:V""WXYZ'
		answer = contains_all_letters(text)
		self.assertEqual(answer,True)
Beispiel #6
0
	def test_mixed_case(self):
		text = 'ABCDEFGHijkLMNOPQRSTUVWXYZ'
		answer = contains_all_letters(text)
		self.assertEqual(answer,True)
Beispiel #7
0
	def test_lower_case(self):
		text = 'abcdefghijklmnopqrstuvwxyz'
		answer = contains_all_letters(text)
		self.assertEqual(answer,True)