@pytest.mark.django_db
def test_save_store_fs_bad_lang_with_store(po_directory, tp0_store, tp0_store_fs):
 tp0_store_fs.store = tp0_store
 tp0_store_fs.pootle_path = '/language1/project0/example.po'
 with pytest.raises(ValidationError):
  tp0_store_fs.save()

@ pytest . mark . django_db def test_save_store_fs_bad_lang_with_store ( po_directory , tp0_store , tp0_store_fs ) : tp0_store_fs . store = tp0_store tp0_store_fs . pootle_path = '/language1/project0/example.po' with pytest . raises ( ValidationError ) : tp0_store_fs . save ( )
try to save a store with a pootle_path that is different from the associated store .