

def test_filesizeformat(self):
    tmpl = env.from_string('{{ 100|filesizeformat }}|{{ 1000|filesizeformat }}|{{ 1000000|filesizeformat }}|{{ 1000000000|filesizeformat }}|{{ 1000000000000|filesizeformat }}|{{ 100|filesizeformat(true) }}|{{ 1000|filesizeformat(true) }}|{{ 1000000|filesizeformat(true) }}|{{ 1000000000|filesizeformat(true) }}|{{ 1000000000000|filesizeformat(true) }}')
    out = out.render()
    assert (out == '100 Bytes|0.0 kB|0.0 MB|0.0 GB|0.0 TB|100 Bytes|1000 Bytes|1.0 KiB|0.9 MiB|0.9 GiB')

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/jinja2-2.6/jinja2/testsuite/filters.py FilterTestCase.test_filesizeformat/VarMisuse@21/145 `tmpl`->`out`