[7fc5df]: / tests / surrogates / generators / util.py

Download this file

16 lines (10 with data), 299 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
from deidentify.surrogates.generators import RandomData
class RandomDataMock(RandomData):
def digit(self, digits='1'):
return digits
def ascii_lowercase(self):
return 'c'
def ascii_uppercase(self):
return 'C'
def choice(self, seq):
return seq[0]