Пример #1
0
	def test_isHexString_HexString_IsAValidHexString(self):
		"""
		Passes a hex string without the #, returns a boolean true
		"""
		isHex = views.isHexString("FFAC79")
		self.assertTrue(isHex)
Пример #2
0
	def test_isHexString_NonHexString_IsNotAValidHexString(self):
		"""
		Passes nonsense word, returns a boolean false
		"""
		isHex = views.isHexString("DDXXyio2k;")
		self.assertFalse(isHex)
Пример #3
0
	def test_isHexString_NullString_IsNotAValidHexString(self):
		"""
		Passes a null string in, gets a boolean false
		"""
		isHex = views.isHexString(None)
		self.assertFalse(isHex)
Пример #4
0
	def test_isHexString_AnyCaseHexString_IsAValidHexString(self):
		"""
		Passes a hex string without the # in jumble case, returns a boolean true
		"""
		isHex = views.isHexString("a3CeDd")
		self.assertTrue(isHex)