@pytest.mark.django_db
def test_empty_plural_target(af_tutorial_po):
 db_unit = _update_translation(af_tutorial_po, 2, {'target': [u'samaka']})
 store_unit = af_tutorial_po.file.store.findid(db_unit.getid())
 assert (len(store_unit.target.strings) == 2)
 db_unit = _update_translation(af_tutorial_po, 2, {'target': u''})
 assert (len(store_unit.target.strings) == 2)

@ pytest . mark . django_db def test_empty_plural_target ( af_tutorial_po ) : db_unit = _update_translation ( af_tutorial_po , 2 , { 'target' : [ u'samaka' ] } ) store_unit = af_tutorial_po . file . store . findid ( db_unit . getid ( ) ) assert ( len ( store_unit . target . strings ) == 2 ) db_unit = _update_translation ( af_tutorial_po , 2 , { 'target' : u'' } ) assert ( len ( store_unit . target . strings ) == 2 )
tests empty plural targets are not deleted .