I am not sure how to check our handler is getting called. One way is `self.assertTrue(isinstance(handler.formatter.formatter, LocalVarFormatter))` but handlers are also of  inbuilt `log formatter`. So this approach depends on order of handlers.