def test_Extra(self):
     for i in self.TESTS['Extra']:
         assert checkio(i['input']) == i['answer']
示例#2
0
	def test_checkio_with_good_password_first_example_returns_true(self):
		result = house_password.checkio(u'bAse730onE4')
		self.assertEquals(True, result)
 def test_Basics(self):
     for i in self.TESTS['Basics']:
         assert checkio(i['input']) == i['answer']
示例#4
0
	def test_checkio_with_good_password_second_example_returns_true(self):
		result = house_password.checkio(u'QwErTy911poqqqq')
		self.assertEquals(True, result)
示例#5
0
	def test_checkio_with_password_length_lower_than_ten_returns_false(self):
		result = house_password.checkio(u'A1213pokl')
		self.assertEquals(False, result)
示例#6
0
	def test_checkio_with_no_letters_returns_false(self):
		result = house_password.checkio(u'123456123456')
		self.assertEquals(False, result)
示例#7
0
	def test_checkio_with_no_figures_returns_false(self):
		result = house_password.checkio(u'QWERTYqwerty')
		self.assertEquals(False, result)
示例#8
0
	def test_checkio_with_only_lower_case_letters_returns_false(self):
		result = house_password.checkio(u'asasasasasasasaas')
		self.assertEquals(False, result)
示例#9
0
 def test_Extra(self):
     for i in self.TESTS['Extra']:
         assert checkio(i['input']) == i['answer']
示例#10
0
 def test_Basics(self):
     for i in self.TESTS['Basics']:
         assert checkio(i['input']) == i['answer']