<s> from __future__ import absolute_import <EOL> from __future__ import unicode_literals <EOL> import six <EOL> from compose . cli import verbose_proxy <EOL> from tests import unittest <EOL> class VerboseProxyTestCase ( unittest . TestCase ) : <EOL> def test_format_call ( self ) : <EOL> prefix = '<STR_LIT>' if six . PY3 else '<STR_LIT:u>' <EOL> expected = "<STR_LIT>" % dict ( p = prefix ) <EOL> actual = verbose_proxy . format_call ( <EOL> ( "<STR_LIT>" , True ) , <EOL> { '<STR_LIT:key>' : '<STR_LIT:value>' } ) <EOL> self . assertEqual ( expected , actual ) <EOL> def test_format_return_sequence ( self ) : <EOL> expected = "<STR_LIT>" <EOL> actual = verbose_proxy . format_return ( list ( range ( <NUM_LIT:10> ) ) , <NUM_LIT:2> ) <EOL> self . assertEqual ( expected , actual ) <EOL> def test_format_return ( self ) : <EOL> expected = repr ( { '<STR_LIT>' : '<STR_LIT>' } ) <EOL> actual = verbose_proxy . format_return ( { '<STR_LIT>' : '<STR_LIT>' } , <NUM_LIT:2> ) <EOL> self . assertEqual ( expected , actual ) <EOL> def test_format_return_no_result ( self ) : <EOL> actual = verbose_proxy . format_return ( None , <NUM_LIT:2> ) <EOL> self . assertEqual ( None , actual ) </s>
