<s> from sysmon . templatetags . sysmon_tags import bytes2human <EOL> def kbyte ( quantity ) : <EOL> return <NUM_LIT> * quantity <EOL> def mega ( quantity ) : <EOL> return kbyte ( <NUM_LIT> ) * quantity <EOL> def giga ( quantity ) : <EOL> return mega ( <NUM_LIT> ) * quantity <EOL> def tera ( quantity ) : <EOL> return giga ( <NUM_LIT> ) * quantity <EOL> def test_bytes ( ) : <EOL> assert bytes2human ( <NUM_LIT:0.> ) == '<STR_LIT>' <EOL> assert bytes2human ( <NUM_LIT:0.1> ) == '<STR_LIT>' <EOL> assert bytes2human ( <NUM_LIT:1.> ) == '<STR_LIT>' <EOL> assert bytes2human ( <NUM_LIT> ) == '<STR_LIT>' <EOL> assert bytes2human ( <NUM_LIT> ) == '<STR_LIT>' <EOL> def test_kb ( ) : <EOL> assert bytes2human ( kbyte ( <NUM_LIT:1> ) ) == '<STR_LIT>' <EOL> assert bytes2human ( kbyte ( <NUM_LIT:2> ) ) == '<STR_LIT>' <EOL> assert bytes2human ( kbyte ( <NUM_LIT> ) ) == '<STR_LIT>' <EOL> def test_mb ( ) : <EOL> assert bytes2human ( mega ( <NUM_LIT:1.> ) ) == '<STR_LIT>' <EOL> assert bytes2human ( mega ( <NUM_LIT> ) ) == '<STR_LIT>' <EOL> assert bytes2human ( mega ( <NUM_LIT> ) ) == '<STR_LIT>' <EOL> def test_giga ( ) : <EOL> assert bytes2human ( giga ( <NUM_LIT:1.> ) ) == '<STR_LIT>' <EOL> assert bytes2human ( giga ( <NUM_LIT> ) ) == '<STR_LIT>' <EOL> assert bytes2human ( giga ( <NUM_LIT> ) ) == '<STR_LIT>' <EOL> def test_tera ( ) : <EOL> assert bytes2human ( tera ( <NUM_LIT:1.> ) ) == '<STR_LIT>' <EOL> assert bytes2human ( tera ( <NUM_LIT> ) ) == '<STR_LIT>' </s>
