from trac.test import Mock, EnvironmentStub, MockPerm
from trac.ticket.query import Query, QueryModule, TicketQueryMacro
from trac.util.datefmt import utc
from trac.web.chrome import web_context
from trac.web.href import Href
from trac.wiki.formatter import LinkFormatter

try:
    from babel import Locale
except ImportError:
    Locale = None