@pytest.mark.django_db
def test_save_store_fs_bad_project(po_directory, tp0_store_fs):
 tp0_store_fs.store = None
 tp0_store_fs.pootle_path = '/en/project0_BAD/example.po'
 with pytest.raises(ValidationError):
  tp0_store_fs.save()

@ pytest . mark . django_db def test_save_store_fs_bad_project ( po_directory , tp0_store_fs ) : tp0_store_fs . store = None tp0_store_fs . pootle_path = '/en/project0_BAD/example.po' with pytest . raises ( ValidationError ) : tp0_store_fs . save ( )
try to create a store_fs by pootle_path for a non existent project .