Exemplo n.º 1
0
def fr_street_address():
    addr = numerify(random.choice([
        '##### %s' % fr_street_name(),
        '#### %s' % fr_street_name(),
        '### %s' % fr_street_name()
    ]))
    return addr
Exemplo n.º 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
Exemplo n.º 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()
Exemplo n.º 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
Exemplo n.º 5
0
def secondary_address():
    return numerify(random.choice([
      'Apt. ###',
      'Suite ###'
    ]))
Exemplo n.º 6
0
def zip_code():
    return numerify(random.choice(['#####', '#####-####']))
Exemplo n.º 7
0
def uk_geographic_number():
    return numerify(random.choice(["02# #### ####", "01### ######"]))
Exemplo n.º 8
0
def uk_mobile_number():
    return numerify(random.choice(["074## ######", "075## ######", "076## ######", "077## ######", "078## ######", "079## ######"]))
Exemplo n.º 9
0
def phone_number():
    return numerify(random.choice(formats))
Exemplo n.º 10
0
def secondary_address():
    return numerify(random.choice(['Apt. ###', 'Suite ###']))
Exemplo n.º 11
0
def zip_code():
    return numerify(random.choice(['#####', '#####-####']))
Exemplo n.º 12
0
def fr_zip_code():
    return numerify('#####')
Exemplo n.º 13
0
def fr_phone_number():
    return numerify('0#########')
Exemplo n.º 14
0
def phone_number():
    return numerify(random.choice(formats))
Exemplo n.º 15
0
def zip_code():
    return numerify(random.choice(["#####", "#####-####"]))
Exemplo n.º 16
0
def secondary_address():
    return numerify(random.choice(["Apt. ###", "Suite ###"]))