'Check that the audit log has received the expected call as its last call.'

def _assert_audit_log(self, mock_audit_log, level, log_strings):

    method_calls = mock_audit_log.method_calls
    (name, args, _kwargs) = method_calls[(-1)]
    self.assertEquals(name, level)
    self.assertEquals(len(args), 1)
    format_string = args[0]
    for log_string in log_strings:
        self.assertIn(log_string, format_string)
