<s> from __future__ import unicode_literals <EOL> import boto <EOL> from nose . plugins . skip import SkipTest <EOL> import six <EOL> def version_tuple ( v ) : <EOL> return tuple ( map ( int , ( v . split ( "<STR_LIT:.>" ) ) ) ) <EOL> def skip_test ( ) : <EOL> raise SkipTest <EOL> class requires_boto_gte ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , version ) : <EOL> self . version = version <EOL> def __call__ ( self , test ) : <EOL> boto_version = version_tuple ( boto . __version__ ) <EOL> required = version_tuple ( self . version ) <EOL> if boto_version >= required : <EOL> return test <EOL> return skip_test <EOL> class disable_on_py3 ( object ) : <EOL> def __call__ ( self , test ) : <EOL> if not six . PY3 : <EOL> return test <EOL> return skip_test </s>
