1# Copyright 2009-2015 Canonical Ltd. All rights reserved. 2# 3# This file is part of lazr.smtptest 4# 5# lazr.smtptest is free software: you can redistribute it and/or modify it 6# under the terms of the GNU Lesser General Public License as published by 7# the Free Software Foundation, version 3 of the License. 8# 9# lazr.smtptest is distributed in the hope that it will be useful, but WITHOUT 10# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 12# License for more details. 13# 14# You should have received a copy of the GNU Lesser General Public License 15# along with lazr.smtptest. If not, see <http://www.gnu.org/licenses/>. 16 17"""Doctest fixtures for running under nose.""" 18 19from __future__ import absolute_import, print_function, unicode_literals 20 21__metaclass__ = type 22__all__ = [ 23 'globs', 24 ] 25 26 27def globs(globs): 28 """Set up globals for doctests.""" 29 # Enable future statements to make Python 2 act more like Python 3. 30 globs['absolute_import'] = absolute_import 31 globs['print_function'] = print_function 32 globs['unicode_literals'] = unicode_literals 33 # Provide a convenient way to clean things up at the end of the test. 34 return globs 35