def test_account_storage_size_string():
    client = mock.MagicMock()
    account1 = models.Account(client, 1, 1, storage_size=0)
    assert account1.storage_size_string == "0.0 GB"
    account2 = models.Account(client, 1, 1, storage_size=50*1024*1024)
    assert account2.storage_size_string == "0.01 GB"
    account3 = models.Account(client, 1, 1, storage_size=50*1024*1024*1024)
    assert account3.storage_size_string == "50.0 GB"
    account4 = models.Account(client, 1, 1, storage_size=300*1024*1024*1024)
    assert account4.storage_size_string == "300 GB"
dataset/ETHPy150Open treasure-data/td-client-python/tdclient/test/account_model_test.py/test_account_storage_size_string/original