#NEWLINE# def test_table_estimated_storage_size_string( ) : #NEWLINE# #INDENT# client = mock . MagicMock ( ) #NEWLINE# table1 = models . Table ( client , 'db_name' , 'table_name' , 'type' , 'schema' , 12345 , estimated_storage_size = 1 ) #NEWLINE# assert ( table1 . estimated_storage_size_string == '0.0 GB' ) #NEWLINE# table2 = models . Table ( client , 'db_name' , 'table_name' , 'type' , 'schema' , 12345 , estimated_storage_size = ( ( 50 * 1024 ) * 1024 ) ) #NEWLINE# assert ( table2 . estimated_storage_size_string == '0.01 GB' ) #NEWLINE# table3 = models . Table ( client , 'db_name' , 'table_name' , 'type' , 'schema' , 12345 , estimated_storage_size = ( ( ( 50 * 1024 ) * 1024 ) * 1024 ) ) #NEWLINE# assert ( table3 . estimated_storage_size_string == '50.0 GB' ) #NEWLINE# table4 = models . Table ( client , 'db_name' , 'table_name' , 'type' , 'schema' , 12345 , estimated_storage_size = ( ( ( 300 * 1024 ) * 1024 ) * 1024 ) ) #NEWLINE# assert ( table4 . estimated_storage_size_string == '300 GB' )