Lines Matching refs:UUID
149 for u in [uuid.UUID(string), uuid.UUID(curly), uuid.UUID(hex),
150 uuid.UUID(bytes=bytes), uuid.UUID(bytes_le=bytes_le),
151 uuid.UUID(fields=fields), uuid.UUID(int=integer),
152 uuid.UUID(urn)]:
196 badvalue(lambda: uuid.UUID(''))
197 badvalue(lambda: uuid.UUID('abc'))
198 badvalue(lambda: uuid.UUID('1234567812345678123456781234567'))
199 badvalue(lambda: uuid.UUID('123456781234567812345678123456789'))
200 badvalue(lambda: uuid.UUID('123456781234567812345678z2345678'))
203 badvalue(lambda: uuid.UUID(bytes='abc'))
204 badvalue(lambda: uuid.UUID(bytes='\0'*15))
205 badvalue(lambda: uuid.UUID(bytes='\0'*17))
208 badvalue(lambda: uuid.UUID(bytes_le='abc'))
209 badvalue(lambda: uuid.UUID(bytes_le='\0'*15))
210 badvalue(lambda: uuid.UUID(bytes_le='\0'*17))
213 badvalue(lambda: uuid.UUID(fields=(1,)))
214 badvalue(lambda: uuid.UUID(fields=(1, 2, 3, 4, 5)))
215 badvalue(lambda: uuid.UUID(fields=(1, 2, 3, 4, 5, 6, 7)))
218 badvalue(lambda: uuid.UUID(fields=(-1, 0, 0, 0, 0, 0)))
219 badvalue(lambda: uuid.UUID(fields=(0x100000000L, 0, 0, 0, 0, 0)))
220 badvalue(lambda: uuid.UUID(fields=(0, -1, 0, 0, 0, 0)))
221 badvalue(lambda: uuid.UUID(fields=(0, 0x10000L, 0, 0, 0, 0)))
222 badvalue(lambda: uuid.UUID(fields=(0, 0, -1, 0, 0, 0)))
223 badvalue(lambda: uuid.UUID(fields=(0, 0, 0x10000L, 0, 0, 0)))
224 badvalue(lambda: uuid.UUID(fields=(0, 0, 0, -1, 0, 0)))
225 badvalue(lambda: uuid.UUID(fields=(0, 0, 0, 0x100L, 0, 0)))
226 badvalue(lambda: uuid.UUID(fields=(0, 0, 0, 0, -1, 0)))
227 badvalue(lambda: uuid.UUID(fields=(0, 0, 0, 0, 0x100L, 0)))
228 badvalue(lambda: uuid.UUID(fields=(0, 0, 0, 0, 0, -1)))
229 badvalue(lambda: uuid.UUID(fields=(0, 0, 0, 0, 0, 0x1000000000000L)))
232 badvalue(lambda: uuid.UUID('00'*16, version=0))
233 badvalue(lambda: uuid.UUID('00'*16, version=6))
236 badvalue(lambda: uuid.UUID(int=-1))
237 badvalue(lambda: uuid.UUID(int=1<<128L))
241 uuid.UUID(h)
242 uuid.UUID(hex=h)
243 uuid.UUID(bytes=b)
244 uuid.UUID(bytes_le=b)
245 uuid.UUID(fields=f)
246 uuid.UUID(int=i)
249 badtype(lambda: uuid.UUID())
250 badtype(lambda: uuid.UUID(h, b))
251 badtype(lambda: uuid.UUID(h, b, b))
252 badtype(lambda: uuid.UUID(h, b, b, f))
253 badtype(lambda: uuid.UUID(h, b, b, f, i))
263 badtype(lambda: uuid.UUID(h, **args))
265 badtype(lambda: uuid.UUID(**args))
268 u = uuid.UUID(h)
341 equal(u, uuid.UUID(v))
374 equal(u, uuid.UUID(v))