<s> from nose . tools import * <EOL> from desktop . lib . view_util import big_filesizeformat , format_time_diff , format_duration_in_millis <EOL> import datetime <EOL> def test_big_filesizeformat ( ) : <EOL> assert_equal ( "<STR_LIT>" , big_filesizeformat ( None ) ) <EOL> assert_equal ( "<STR_LIT>" , big_filesizeformat ( "<STR_LIT>" ) ) <EOL> assert_equal ( "<STR_LIT>" , big_filesizeformat ( <NUM_LIT:0> ) ) <EOL> assert_equal ( "<STR_LIT>" , big_filesizeformat ( <NUM_LIT> ) ) <EOL> assert_equal ( "<STR_LIT>" , big_filesizeformat ( <NUM_LIT> ) ) <EOL> assert_equal ( "<STR_LIT>" , big_filesizeformat ( <NUM_LIT> * <NUM_LIT> ) ) <EOL> assert_equal ( "<STR_LIT>" , big_filesizeformat ( int ( <NUM_LIT> * <NUM_LIT> * <NUM_LIT> * <NUM_LIT> ) ) ) <EOL> assert_equal ( "<STR_LIT>" , big_filesizeformat ( <NUM_LIT:2> * <NUM_LIT> * <NUM_LIT> * <NUM_LIT> * <NUM_LIT> ) ) <EOL> assert_equal ( "<STR_LIT>" , big_filesizeformat ( <NUM_LIT:3> * <NUM_LIT> * <NUM_LIT> * <NUM_LIT> * <NUM_LIT> * <NUM_LIT> / <NUM_LIT:2> ) ) <EOL> def test_format_time_diff ( ) : <EOL> assert_equal ( "<STR_LIT>" , format_time_diff ( datetime . datetime . fromtimestamp ( <NUM_LIT:0> ) , datetime . datetime . fromtimestamp ( <NUM_LIT> * <NUM_LIT> * <NUM_LIT:1> ) ) ) <EOL> assert_equal ( "<STR_LIT>" , format_time_diff ( datetime . datetime . fromtimestamp ( <NUM_LIT:0> ) , datetime . datetime . fromtimestamp ( <NUM_LIT:0> ) ) ) <EOL> assert_equal ( "<STR_LIT>" , format_time_diff ( datetime . datetime . fromtimestamp ( <NUM_LIT:0> ) , datetime . datetime . fromtimestamp ( <NUM_LIT> ) ) ) <EOL> def test_format_duration_in_millis ( ) : <EOL> assert_equal ( "<STR_LIT>" , format_duration_in_millis ( <NUM_LIT> * <NUM_LIT> * <NUM_LIT:1000> ) ) <EOL> assert_equal ( "<STR_LIT>" , format_duration_in_millis ( <NUM_LIT:0> ) ) <EOL> assert_equal ( "<STR_LIT>" , format_duration_in_millis ( <NUM_LIT> * <NUM_LIT> * <NUM_LIT> * <NUM_LIT:1000> + <NUM_LIT:12> * <NUM_LIT> * <NUM_LIT> * <NUM_LIT:1000> + <NUM_LIT> * <NUM_LIT> * <NUM_LIT:1000> + <NUM_LIT:32> * <NUM_LIT:1000> ) ) </s>
