Lines Matching defs:mock
13 from unittest import mock
474 with mock.patch.multiple(
553 with mock.patch.object(self.uuid, '_generate_time_safe',
559 # Even if the platform has uuid_generate_time_safe(), let's mock it to
584 with mock.patch.object(self.uuid, '_has_uuid_generate_time_safe', False), \
585 mock.patch.object(self.uuid, '_generate_time_safe', None), \
586 mock.patch.object(self.uuid, '_last_timestamp', None), \
587 mock.patch.object(self.uuid, 'getnode', return_value=93328246233727), \
588 mock.patch('time.time_ns', return_value=1545052026752910643), \
589 mock.patch('random.getrandbits', return_value=5317): # guaranteed to be random
593 with mock.patch.object(self.uuid, '_has_uuid_generate_time_safe', False), \
594 mock.patch.object(self.uuid, '_generate_time_safe', None), \
595 mock.patch.object(self.uuid, '_last_timestamp', None), \
596 mock.patch('time.time_ns', return_value=1545052026752910643):
691 patch = mock.patch.multiple(self.uuid,
695 patch = mock.patch.multiple(self.uuid,
754 with mock.patch.multiple(self.uuid,
791 with mock.patch.multiple(self.uuid,
812 with mock.patch.multiple(self.uuid,