Fix CVP rabbitmq sanity check

The new rabbitmq version has different output of rabbitmqctl.
Since this test magically rely on count of "rabbit@" entries in the
rabbitmqctl output it fails when it comes to the new output format.
This commit changes the logic to more compatible one and also
makes the code PEP8-compliant.

Closes-Bug: PROD-35148
Change-Id: Id038e34d0f3dbe5e587b431393e3d92ef2a0ebbd
(cherry picked from commit 702f75ad911b19927653119d5e6a2f6e46c0b7ff)
1 file changed
tree: e1fb5898518c53e09e0b400363c7f191f1b2c117
  1. bin/
  2. docs/
  3. test_set/
  4. .gitignore
  5. Dockerfile
  6. LICENSE