Exemplo n.º 1
0
def test_spanish_no_doi():
    """Test retrieval without doi."""
    assert ('* {{cite journal | last=Mendozo Hernández | first=P '
            '| title=[Clinical diagnosis and therapy.'
            ' Intravenous and oral rehydration]. '
            '| journal=Boletin de la Oficina Sanitaria Panamericana.'
            ' Pan American Sanitary Bureau | volume=78 | issue=4 | year=1975 '
            '| issn=0030-0632 | pmid=123455 | pages=307–17 | language=es}}'
            ) in pmid_scr('123455')[1]
Exemplo n.º 2
0
def test_2letter_langcode():
    """Test that 3letter language code is converted to a 2-letter one."""
    # Todo: The fawiki template mixes Persian and Chinese characters...
    assert (
        '* {{یادکرد ژورنال | نام خانوادگی=Huang | نام=Y '
        '| نام خانوادگی۲=Lu | نام۲=J | نام خانوادگی۳=Shen '
        '| نام۳=Y | نام خانوادگی۴=Lu | نام۴=J '
        '| عنوان=[The protective effects of total flavonoids from '
        'Lycium Barbarum L. on lipid peroxidation of liver mitochondria '
        'and red blood cell in rats]. '
        '| ژورنال=Wei sheng yan jiu = Journal of hygiene research '
        '| جلد=28 | شماره=2 | تاریخ=1999-03-30 | issn=1000-8020 '
        '| pmid=11938998 | صفحه=115–6 | زبان=zh}}') in pmid_scr('11938998')[1]