示例#1
0
 def setUp(self):
     self.base_provider = credit_card.Provider(faker.generator.Generator())
     self.factory = faker.Faker(locale='en_US')
     self.pattern = r'^(?:2131|1800|35\d{3})\d{11}$'
示例#2
0
 def setUp(self):
     self.base_provider = credit_card.Provider(faker.generator.Generator())
     self.factory = faker.Faker(locale='en_US')
     self.pattern = r'^3(?:0[0-5]|[68][0-9])[0-9]{11}$'
示例#3
0
 def setUp(self):
     self.base_provider = credit_card.Provider(faker.generator.Generator())
     self.factory = faker.Faker(locale='en_US')
     self.pattern = r'^4[0-9]{12}([0-9]{3}){0,2}$'
示例#4
0
 def setUp(self):
     self.base_provider = credit_card.Provider(faker.generator.Generator())
     self.factory = faker.Faker(locale='en_US')
     self.pattern = r'^6(?:011|5[0-9]{2})[0-9]{12}$'
示例#5
0
 def setUp(self):
     self.base_provider = credit_card.Provider(faker.generator.Generator())
     self.factory = faker.Faker(locale='en_US')
     self.pattern = r'^(?:5[1-5][0-9]{2}|222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$'