nagare.test package

Submodules

nagare.test.test_component module

class nagare.test.test_component.App1
class nagare.test.test_component.Bar

Bases: nagare.test.test_component.Foo

class nagare.test.test_component.Foo

Bases: object

set_my_property(v)
class nagare.test.test_component.Foobar
nagare.test.test_component.render(self, h, *args)
nagare.test.test_component.render_bar(self, h, *args)
nagare.test.test_component.test1()

Component - test on_answer/answer

nagare.test.test_component.test2()

Component - becomes

nagare.test.test_component.test3()

Component - call

nagare.test.test_component.test4()

Component - render

nagare.test.test_database module

nagare.test.test_form module

class nagare.test.test_form.MyApp
class nagare.test.test_form.MyEditor(source)

Bases: nagare.editor.Editor

commit()
fields = ('name', 'age')
set_values(name, age)
class nagare.test.test_form.MyStringEditor(source)

Bases: nagare.editor.Editor

commit()
fields = ('name',)
set_values(name)
class nagare.test.test_form.MyStringEditor1(source)

Bases: nagare.test.test_form.MyStringEditor

class nagare.test.test_form.MyStringEditor2(source)

Bases: nagare.test.test_form.MyStringEditor

class nagare.test.test_form.MyStringEditor3(source)

Bases: nagare.test.test_form.MyStringEditor

class nagare.test.test_form.MyStringEditor4(source)

Bases: nagare.test.test_form.MyStringEditor

class nagare.test.test_form.MyStringEditor5(source)

Bases: nagare.test.test_form.MyStringEditor

nagare.test.test_form.check(v)
nagare.test.test_form.test1()

Form - validation OK

nagare.test.test_form.test10()
nagare.test.test_form.test11()
nagare.test.test_form.test12()
nagare.test.test_form.test13()
nagare.test.test_form.test14()
nagare.test.test_form.test2()

Form - validation KO

nagare.test.test_form.test4()

Form - test string validators - not_empty

nagare.test.test_form.test5()

Form - test string validators - match

nagare.test.test_form.test6()

Form - test string validators - shorter_than

nagare.test.test_form.test7()

Form - test string validators - length_equal

nagare.test.test_form.test8()

Form - test string validators - multiple validators

nagare.test.test_form.test9()

nagare.test.test_i18n module

class nagare.test.test_i18n.Locale(language='en', territory=None, script=None, variant=None, dirname=None, domain=None, timezone=None, default_timezone=None)

Bases: nagare.i18n.Locale

class nagare.test.test_i18n.TestContext(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
test_context_manager()
class nagare.test.test_i18n.TestDateNames(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
test_get_date_format()
test_get_datetime_format()
test_get_day_names()
test_get_era_names()
test_get_month_names()
test_get_period_names()
test_get_quarter_names()
test_get_time_format()
test_get_timezone_gmt()
test_get_timezone_location()
test_get_timezone_name()
class nagare.test.test_i18n.TestFormats(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
test_format_currency()
test_format_decimal()
test_format_number()
test_format_percent()
test_format_scientific()
test_get_currency_name()
test_get_currency_symbol()
test_get_decimal_symbol()
test_get_exponential_symbol()
test_get_group_symbol()
test_get_minus_sign_symbol()
test_get_plus_sign_symbol()
test_parse_decimal()
test_parse_number()
class nagare.test.test_i18n.TestParsing(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
test_parse_date_en()
test_parse_date_fr()
test_parse_time_en()
test_parse_time_fr()
class nagare.test.test_i18n.TestTimezones(methodName='runTest')

Bases: unittest.case.TestCase

test_format_date_date()
test_format_date_date_with_format()
test_format_date_datetime()
test_format_datetime()
test_format_datetime_with_format()
test_format_time_datetime_fr1()
test_format_time_datetime_fr2()
test_format_time_datetime_fr3()
test_format_time_datetime_fr4()
test_format_time_datetime_fr5()
test_format_time_datetime_with_format()
test_format_time_time_en()
test_format_time_time_fr1()
test_format_time_time_fr2()
test_format_time_time_fr3()
test_format_time_time_fr4()
test_format_time_time_with_format()
test_to_timezone_local_datetime()
test_to_timezone_no_timezone_datetime()
test_to_timezone_utc_datetime()
test_to_utc_local_datetime()
test_to_utc_no_timezone_datetime()
test_to_utc_utc_datetime()
class nagare.test.test_i18n.TestTranslations(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
test_LN_ungettext_plural()
test_LN_ungettext_singular()
test_L_ugettext()
test_N_plural()
test_N_singular()
test__()
test_gettext()
test_gettext_params()
test_gettext_unknown()
test_lazy_gettext()
test_lazy_gettext_params()
test_lazy_ngettext_plural()
test_lazy_ngettext_singular()
test_lazy_ugettext()
test_lazy_ugettext_params()
test_lazy_ungettext_plural()
test_lazy_ungettext_singular()
test_ngettext_plural()
test_ngettext_plural_unknown()
test_ngettext_singular()
test_ngettext_singular_unknown()
test_ugettext()
test_ugettext_params()
test_ugettext_unknown()
test_ungettext_plural()
test_ungettext_plural_unknown()
test_ungettext_singular()
test_ungettext_singular_unknown()
class nagare.test.test_i18n.Translation

Bases: dict

gettext(msg)
ngettext(singular, plural, n)
ugettext(msg)
ungettext(singular, plural, n)

nagare.test.test_serializer module

class nagare.test.test_serializer.TestSerializer(methodName='runTest')

Bases: unittest.case.TestCase

test_comment()
test_etree()
test_html()
test_list()
test_pi()
test_str()
test_unicode()
test_xhtml()
test_xml()

nagare.test.test_top module

class nagare.test.test_top.TestTop(methodName='runTest')

Bases: unittest.case.TestCase

check_html(html)
setUp()
test_1()
test_10()
test_11()
test_12()
test_13()
test_14()
test_15()
test_16()
test_17()
test_18()
test_19()
test_2()
test_20()
test_21()
test_22()
test_23()
test_24()
test_25()
test_26()
test_27()
test_28()
test_29()
test_3()
test_30()
test_31()
test_32()
test_33()
test_34()
test_35()
test_36()
test_37()
test_38()
test_39()
test_4()
test_5()
test_6()
test_7()
test_8()
test_9()
test_canonical()

nagare.test.test_wsgi module

class nagare.test.test_wsgi.App(session_manager=<nagare.test.test_wsgi.SessionManager object>)

Bases: nagare.wsgi.WSGIApp

class nagare.test.test_wsgi.ExpiredSessionManager(states_history=True, security_cookie_httponly=True, security_cookie_name='_nagare', security_cookie_secure=False, serializer=<class 'nagare.sessions.serializer.Dummy'>, pickler=None, unpickler=None)

Bases: nagare.sessions.common.Sessions

get_lock(session_id)
get_state(request, response, use_same_state)
class nagare.test.test_wsgi.Lock

Bases: object

acquire()
release()
class nagare.test.test_wsgi.Response

Bases: dict

class nagare.test.test_wsgi.SessionManager(states_history=True, security_cookie_httponly=True, security_cookie_name='_nagare', security_cookie_secure=False, serializer=<class 'nagare.sessions.serializer.Dummy'>, pickler=None, unpickler=None)

Bases: nagare.sessions.common.Sessions

nagare.test.test_wsgi.create_environ()
nagare.test.test_wsgi.process_request(app=None, environ={}, **kw)
nagare.test.test_wsgi.test_bad_session()

Request - session expired

nagare.test.test_wsgi.test_request_validity2()

Request - invalid url

Module contents