Exemplo n.º 1
0
	def test_isHelperUsefulB(self):
		headers = {
			'User-Agent': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36'
		}

		hdDevice = HDDevice()
		result = hdDevice.isHelperUseful(headers)
		self.assertFalse(result)
Exemplo n.º 2
0
	def test_isHelperUsefulA(self):
		headers = {
			'User-Agent': 'Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3 like Mac OS X; en-gb) AppleWebKit/533.17.9 (KHTML, like Gecko)'
		}
		hdDevice = HDDevice()


		result = hdDevice.isHelperUseful(headers)
		self.assertTrue(result)