@pytest.mark.django_db
def test_add_store_bad_lang(project0):
 with pytest.raises(ValidationError):
  StoreFS.objects.create(pootle_path=('/fr/%s/example.po' % project0.code), path='/some/fs/example.po')

@ pytest . mark . django_db def test_add_store_bad_lang ( project0 ) : with pytest . raises ( ValidationError ) : StoreFS . objects . create ( pootle_path = ( '/fr/%s/example.po' % project0 . code ) , path = '/some/fs/example.po' )
try to create a store_fs by pootle_path for a non existent language .