def test_getquotainfo():
    'This tests the command GETQUOTAINFO, which gets both the quota for the workspace and the \n\tdisk usage'
    dbconn = setup_test()
    dbdata = init_server(dbconn)
    conn = ServerConnection()
    assert conn.connect('localhost', 2001), 'Connection to server at localhost:2001 failed'
    reset_top_dir(dbdata)
    pwhash = '$argon2id$v=19$m=65536,t=2,p=1$ew5lqHA5z38za+257DmnTA$0LWVrI2r7XCqdcCYkJLok65qussSyhN5TTZP+OTgzEI'
    devid = '22222222-2222-2222-2222-222222222222'
    devpair = EncryptionPair(CryptoString('CURVE25519:@X~msiMmBq0nsNnn0%~x{M|NU_{?<Wj)cYybdh&Z'), CryptoString('CURVE25519:W30{oJ?w~NBbj{F8Ag4~<bcWy6_uQ{i{X?NDq4^l'))
    dbdata['pwhash'] = pwhash
    dbdata['devid'] = devid
    dbdata['devpair'] = devpair
    regcode_admin(dbdata, conn)
    login_admin(dbdata, conn)
    init_user(dbdata, conn)
    status = make_test_file(os.path.join(dbdata['configfile']['global']['workspace_dir'], dbdata['admin_wid']), file_size=1000)
    assert (not status.error()), f'Failed to create test workspace file: {status.info}'
    conn.send_message({'Action': 'GETQUOTAINFO', 'Data': {}})
    response = conn.read_response(server_response)
    assert (response['Code'] == 200), 'test_getquotainfo: failed to get quota information'
    assert (response['Data']['DiskUsage'] == '1000'), 'test_getquotainfo: disk usage was incorrect'
    assert (response['Data']['QuotaSize'] == '0'), "test_getquotainfo: admin quota wasn't unlimited"
    conn.disconnect()
This tests the command GETQUOTAINFO, which gets both the quota for the workspace and the 
disk usage
def test_getquotainfo():
    'This tests the command GETQUOTAINFO, which gets both the quota for the workspace and the \n\tdisk usage'
    dbconn = setup_test()
    dbdata = init_server(dbconn)
    conn = ServerConnection()
    assert conn.connect('localhost', 2001), 'Connection to server at localhost:2001 failed'
    reset_top_dir(dbdata)
    pwhash = '$argon2id$v=19$m=65536,t=2,p=1$ew5lqHA5z38za+257DmnTA$0LWVrI2r7XCqdcCYkJLok65qussSyhN5TTZP+OTgzEI'
    devid = '22222222-2222-2222-2222-222222222222'
    devpair = EncryptionPair(CryptoString('CURVE25519:@X~msiMmBq0nsNnn0%~x{M|NU_{?<Wj)cYybdh&Z'), CryptoString('CURVE25519:W30{oJ?w~NBbj{F8Ag4~<bcWy6_uQ{i{X?NDq4^l'))
    dbdata['pwhash'] = pwhash
    dbdata['devid'] = devid
    dbdata['devpair'] = devpair
    regcode_admin(dbdata, conn)
    login_admin(dbdata, conn)
    init_user(dbdata, conn)
    status = make_test_file(os.path.join(dbdata['configfile']['global']['workspace_dir'], dbdata['admin_wid']), file_size=1000)
    assert (not status.error()), f'Failed to create test workspace file: {status.info}'
    conn.send_message({'Action': 'GETQUOTAINFO', 'Data': {}})
    response = conn.read_response(server_response)
    assert (response['Code'] == 200), 'test_getquotainfo: failed to get quota information'
    assert (response['Data']['DiskUsage'] == '1000'), 'test_getquotainfo: disk usage was incorrect'
    assert (response['Data']['QuotaSize'] == '0'), "test_getquotainfo: admin quota wasn't unlimited"
    conn.disconnect()