Added check for assert module for msg and failed_msg as a list or string types. Fixes: #48547 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>