Some time ago I was faced with a task of testing a bash script. At first I decided to use Python unit-tests…