Example #1
0
def fr_street_address():
    addr = numerify(random.choice([
        '##### %s' % fr_street_name(),
        '#### %s' % fr_street_name(),
        '### %s' % fr_street_name()
    ]))
    return addr
Example #2
0
def street_address(include_secondary=False):
    addr = numerify(random.choice([
        '##### %s' % street_name(),
        '#### %s' % street_name(),
        '### %s' % street_name()
    ]))
    if include_secondary:
        addr = ' '.join([addr, secondary_address()])
    return addr
Example #3
0
def deliver_paypal(order, **kwargs):
    TEST_PAYPAL_TRANSACTION.update({
        'invoice': unicode(order.id),
        'txn_id': numerify('########'),
        'payment_status': 'Completed'
    })
    TEST_PAYPAL_TRANSACTION.update(kwargs)
    paypal = PayPalIPN.objects.create(**TEST_PAYPAL_TRANSACTION)
    paypal.send_signals()
Example #4
0
def street_address(include_secondary=False):
    addr = numerify(random.choice([
        '##### %s' % street_name(),
        '#### %s' % street_name(),
        '### %s' % street_name()
    ]))
    if include_secondary:
        addr = ' '.join([addr, secondary_address()])
    return addr
Example #5
0
def secondary_address():
    return numerify(random.choice([
      'Apt. ###',
      'Suite ###'
    ]))
Example #6
0
def zip_code():
    return numerify(random.choice(['#####', '#####-####']))
Example #7
0
def uk_geographic_number():
    return numerify(random.choice(["02# #### ####", "01### ######"]))
Example #8
0
def uk_mobile_number():
    return numerify(random.choice(["074## ######", "075## ######", "076## ######", "077## ######", "078## ######", "079## ######"]))
Example #9
0
def phone_number():
    return numerify(random.choice(formats))
Example #10
0
def secondary_address():
    return numerify(random.choice(['Apt. ###', 'Suite ###']))
Example #11
0
def zip_code():
    return numerify(random.choice(['#####', '#####-####']))
Example #12
0
def fr_zip_code():
    return numerify('#####')
Example #13
0
def fr_phone_number():
    return numerify('0#########')
Example #14
0
def phone_number():
    return numerify(random.choice(formats))
Example #15
0
def zip_code():
    return numerify(random.choice(["#####", "#####-####"]))
Example #16
0
def secondary_address():
    return numerify(random.choice(["Apt. ###", "Suite ###"]))