| 12345678910111213141516171819202122232425262728 | from compose.cli import verbose_proxyfrom tests import unittestclass VerboseProxyTestCase(unittest.TestCase):    def test_format_call(self):        prefix = ''        expected = "(%(p)s'arg1', True, key=%(p)s'value')" % dict(p=prefix)        actual = verbose_proxy.format_call(            ("arg1", True),            {'key': 'value'})        assert expected == actual    def test_format_return_sequence(self):        expected = "(list with 10 items)"        actual = verbose_proxy.format_return(list(range(10)), 2)        assert expected == actual    def test_format_return(self):        expected = repr({'Id': 'ok'})        actual = verbose_proxy.format_return({'Id': 'ok'}, 2)        assert expected == actual    def test_format_return_no_result(self):        actual = verbose_proxy.format_return(None, 2)        assert actual is None
 |