Esempio n. 1
0
__FILENAME__ = tests
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import picka

assert picka.phone_number()
assert picka.last_name()
assert picka.random_string(8)
assert picka.sentence()
assert picka.sentence_actual()
assert picka.timezone_offset()
assert picka.language()
assert picka.timezone_offset_country()
assert picka.screename()
assert picka.number(10)
assert picka.month()
assert picka.month_and_day_and_year()
assert picka.special_characters(8)
assert picka.postal_code()
assert picka.apartment_number()
assert picka.gender()
assert picka.salutation()
assert picka.creditcard('visa')
assert picka.male_middle_name()
assert picka.city()
assert picka.male_full_name_w_middle_initial()
assert picka.state_abbreviated()
assert picka.street_name()
assert picka.initial()
assert picka.calling_code_with_country()
assert picka.surnames()
Esempio n. 2
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import picka

assert picka.phone_number()
assert picka.last_name()
assert picka.random_string(8)
assert picka.sentence()
assert picka.sentence_actual()
assert picka.timezone_offset()
assert picka.language()
assert picka.timezone_offset_country()
assert picka.screename()
assert picka.number(10)
assert picka.month()
assert picka.month_and_day_and_year()
assert picka.special_characters(8)
assert picka.postal_code()
assert picka.apartment_number()
assert picka.gender()
assert picka.salutation()
assert picka.creditcard('visa')
assert picka.male_middle_name()
assert picka.city()
assert picka.male_full_name_w_middle_initial()
assert picka.state_abbreviated()
assert picka.street_name()
assert picka.initial()
assert picka.calling_code_with_country()
assert picka.surnames()
assert picka.business_title()
Esempio n. 3
0
print picka.phone_number()
print picka.last_name()
print picka.random_string(8)
print picka.sentence()
print picka.sentence_actual()
assert picka.sentence_actual(86, 93)  == (
"""\
A shock of orange hair a pale face disfigured by a horrible scar which by its contraction has turned up the outer edge of his upper lip a bulldog chin and a pair of very penetrating dark eyes which present a singular contrast to the colour of his hair all mark him out from amid the common crowd of mendicants and so too does his wit for he is ever ready with a reply to any piece of chaff which may be thrown at him by the passers-by."""
)
print picka.timezone_offset()
print picka.language()
print picka.timezone_offset_country()
print picka.screename()
print picka.number(10)
print picka.month()
print picka.month_and_day_and_year()
print picka.special_characters(8)
print picka.postal_code()
print picka.apartment_number()
print picka.gender()
print picka.salutation()
print picka.creditcard('visa')
print picka.male_middle_name()
print picka.city()
print picka.male_full_name_w_middle_initial()
print picka.state_abbreviated()
print picka.street_name()
print picka.initial()
print picka.calling_code_with_country()
print picka.surnames()
Esempio n. 4
0
def test_month():
    m = month()
    assert len(m) > 0
    assert isinstance(m, StringType)