mirror of
https://github.com/onionshare/onionshare.git
synced 2025-06-28 16:27:23 -04:00
pep8: use triple double-quotes for docstrings
This commit is contained in:
parent
0812e371aa
commit
d51f762ddd
6 changed files with 12 additions and 12 deletions
|
@ -22,17 +22,17 @@ from onionshare import strings
|
|||
from nose import with_setup
|
||||
|
||||
def test_starts_with_empty_strings():
|
||||
"creates an empty strings dict by default"
|
||||
"""creates an empty strings dict by default"""
|
||||
assert strings.strings == {}
|
||||
|
||||
def test_load_strings_defaults_to_english():
|
||||
"load_strings() loads English by default"
|
||||
"""load_strings() loads English by default"""
|
||||
locale.getdefaultlocale = lambda: ('en_US', 'UTF-8')
|
||||
strings.load_strings()
|
||||
assert strings._('wait_for_hs') == "Waiting for HS to be ready:"
|
||||
|
||||
def test_load_strings_loads_other_languages():
|
||||
"load_strings() loads other languages in different locales"
|
||||
"""load_strings() loads other languages in different locales"""
|
||||
locale.getdefaultlocale = lambda: ('fr_FR', 'UTF-8')
|
||||
strings.load_strings("fr")
|
||||
assert strings._('wait_for_hs') == "En attente du HS:"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue