def test_hasBiKeysA2(self): hdDevice = HDDevice() headers = { 'x-wap-profile' : 'http://www-ccpp.tcl-ta.com/files/ALCATEL_one_touch_908.xml' } result = hdDevice.hasBiKeys(headers) self.assertFalse(result)
def test_hasBiKeysA(self): hdDevice = HDDevice() 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)' } result = hdDevice.hasBiKeys(headers) self.assertFalse(result)
def test_hasBiKeysD(self): hdDevice = HDDevice() headers = { 'devicemanufacturer' : 'Sony', 'devicename': 'Tablet 500s' } result = hdDevice.hasBiKeys(headers) self.assertIsNotNone(result)
def test_hasBiKeysC(self): hdDevice = HDDevice() headers = { 'utsname.brand' : 'Apple', 'utsname.machine': 'iMac 9,1' } result = hdDevice.hasBiKeys(headers) self.assertIsNotNone(result)
def test_hasBiKeysB(self): hdDevice = HDDevice() headers = { 'ro.product.brand' : 'Samsung', 'ro.product.model': 'GT-I9500' } result = hdDevice.hasBiKeys(headers) self.assertIsNotNone(result)