test_celery.py: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/lib/python3/dist-packages/celery/tests/bin/test_celery.py - from package: python3-celery
/usr/lib/python2.7/dist-packages/celery/tests/bin/test_celery.py - from package: python-celery

You may install the required package with command apt-get install {package}
Error in other languages:
test_celery.py: bevel nie gevind nie
test_celery.py: comandă negăsită
test_celery.py: comando não encontrado
test_celery.py: commande introuvable
test_celery.py: command not found
test_celery.py: käsku ei ole
test_celery.py: không tìm thấy lệnh
test_celery.py: komanda nerasta
test_celery.py: Kommando nicht gefunden.
test_celery.py: kommandot finns inte
test_celery.py: komut yok
test_celery.py: nie znaleziono polecenia
test_celery.py: níor aimsíodh an t-ordú
test_celery.py: no se encontró la orden
test_celery.py: no s'ha trobat l'ordre
test_celery.py: opdracht niet gevonden
test_celery.py: parancs nem található
test_celery.py: perintah tidak ditemukan
test_celery.py: príkaz nenájdený
test_celery.py: příkaz nenalezen
test_celery.py: команда не найдена
test_celery.py: командата не е открита
test_celery.py: 命令找不到
test_celery.py: コマンドが見つかりません