<s> from __future__ import absolute_import , division , print_function <EOL> import mock <EOL> import sys <EOL> try : <EOL> import unittest2 as unittest <EOL> except ImportError : <EOL> import unittest <EOL> import doctest <EOL> import begin <EOL> class TestBegins ( unittest . TestCase ) : <EOL> def test_has_version ( self ) : <EOL> self . assertTrue ( begin . __version__ ) <EOL> def test_readme ( self ) : <EOL> try : <EOL> original = sys . argv <EOL> sys . argv = [ '<STR_LIT>' ] <EOL> doctest . testfile ( '<STR_LIT>' ) <EOL> finally : <EOL> sys . argv = original <EOL> for collector in begin . subcommands . COLLECTORS . values ( ) : <EOL> collector . clear ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . begin ( ) </s>
