<s> """<STR_LIT>""" <EOL> from __future__ import print_function , absolute_import <EOL> import pprint <EOL> from subprocess import Popen , PIPE <EOL> import tempfile <EOL> import os <EOL> from future . tests . base import CodeHandler , unittest , skip26 <EOL> class TestPasteurize ( CodeHandler ) : <EOL> """<STR_LIT>""" <EOL> def setUp ( self ) : <EOL> _ , self . textfilename = tempfile . mkstemp ( text = True ) <EOL> super ( TestPasteurize , self ) . setUp ( ) <EOL> def tearDown ( self ) : <EOL> os . unlink ( self . textfilename ) <EOL> @ skip26 <EOL> def test_range_slice ( self ) : <EOL> """<STR_LIT>""" <EOL> code = '''<STR_LIT>''' <EOL> self . unchanged ( code , from3 = True ) <EOL> def test_print ( self ) : <EOL> """<STR_LIT>""" <EOL> code = '''<STR_LIT>''' <EOL> self . unchanged ( code , from3 = True ) <EOL> def test_division ( self ) : <EOL> """<STR_LIT>""" <EOL> code = '''<STR_LIT>''' <EOL> self . unchanged ( code , from3 = True ) <EOL> @ unittest . expectedFailure <EOL> def test_exception_indentation ( self ) : <EOL> """<STR_LIT>""" <EOL> before = '''<STR_LIT>''' <EOL> after = '''<STR_LIT>''' <EOL> self . convert_check ( before , after , from3 = True ) <EOL> @ unittest . expectedFailure <EOL> def test_urllib_request ( self ) : <EOL> """<STR_LIT>""" <EOL> before = """<STR_LIT>""" <EOL> after = """<STR_LIT>""" <EOL> self . convert_check ( before , after , from3 = True ) <EOL> def test_urllib_refactor2 ( self ) : <EOL> before = """<STR_LIT>""" <EOL> after = """<STR_LIT>""" <EOL> def test_correct_exit_status ( self ) : <EOL> """<STR_LIT>""" <EOL> from libpasteurize . main import main <EOL> retcode = main ( [ self . textfilename ] ) <EOL> self . assertTrue ( isinstance ( retcode , int ) ) <EOL> class TestFuturizeAnnotations ( CodeHandler ) : <EOL> @ unittest . expectedFailure <EOL> def test_return_annotations_alone ( self ) : <EOL> before = "<STR_LIT>" <EOL> after = """<STR_LIT>""" <EOL> self . convert_check ( before , after , from3 = True ) <EOL> b = """<STR_LIT>""" <EOL> a = """<STR_LIT>""" <EOL> self . convert_check ( b , a , from3 = True ) <EOL> @ unittest . expectedFailure <EOL> def test_single_param_annotations ( self ) : <EOL> b = "<STR_LIT>" <EOL> a = """<STR_LIT>""" <EOL> self . convert_check ( b , a , from3 = True ) <EOL> b = """<STR_LIT>""" <EOL> a = """<STR_LIT>""" <EOL> self . convert_check ( b , a , from3 = True ) <EOL> def test_multiple_param_annotations ( self ) : <EOL> b = "<STR_LIT>" <EOL> a = "<STR_LIT>" <EOL> self . convert_check ( b , a , from3 = True ) <EOL> b = """<STR_LIT>""" <EOL> a = """<STR_LIT>""" <EOL> self . convert_check ( b , a , from3 = True ) <EOL> def test_mixed_annotations ( self ) : <EOL> b = "<STR_LIT>" <EOL> a = "<STR_LIT>" <EOL> self . convert_check ( b , a , from3 = True ) <EOL> b = """<STR_LIT>""" <EOL> a = """<STR_LIT>""" <EOL> self . convert_check ( b , a , from3 = True ) <EOL> b = "<STR_LIT>" <EOL> a = "<STR_LIT>" <EOL> self . convert_check ( b , a , from3 = True ) <EOL> def test_functions_unchanged ( self ) : <EOL> s = "<STR_LIT>" <EOL> self . unchanged ( s , from3 = True ) <EOL> s = """<STR_LIT>""" <EOL> self . unchanged ( s , from3 = True ) <EOL> s = """<STR_LIT>""" <EOL> self . unchanged ( s , from3 = True ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
