Beispiel #1
0
 def testGuidIsTimeDependent(self):
     guid1 = generate_guid()
     guid2 = generate_guid()
     self.assertNotEqual(guid1, guid2)
Beispiel #2
0
 def testSizeMustReflectTheGuidSize(self):
     guid = generate_guid()
     guiddata = struct.unpack('!LBBH' + 'p' * (len(guid) - 8), guid)
     #print guid[:8].encode('hex'), ' ', guid[8:].encode('hex')
     self.assertEqual(len(guid), guiddata[2])
Beispiel #3
0
 def testMustBeVendorDependent(self):
     guid1 = generate_guid(entnumber=32012)
     guid2 = generate_guid(entnumber=15232)
     self.assertNotEqual(guid1[0:4], guid2[0:4])
Beispiel #4
0
 def testGuidIsTimeDependent(self):
     guid1 = generate_guid()
     guid2 = generate_guid()
     self.assertNotEqual(guid1, guid2)
Beispiel #5
0
 def testSizeMustReflectTheGuidSize(self):
     guid = generate_guid()
     guiddata = struct.unpack('!LBBH' + 'p' * (len(guid) - 8), guid)
     #print guid[:8].encode('hex'), ' ', guid[8:].encode('hex')
     self.assertEqual(len(guid), guiddata[2])
Beispiel #6
0
 def testMustBeVendorDependent(self):
     guid1 = generate_guid(entnumber=32012)
     guid2 = generate_guid(entnumber=15232)
     self.assertNotEqual(guid1[0:4], guid2[0:4])