def test_surface_basic():
    assert (RSDL.Init(RSDL.INIT_VIDEO) >= 0)
    surface = RSDL.CreateRGBSurface(0, 150, 50, 32, r_uint(255), r_uint(65280), r_uint(16711680), r_uint(4278190080))
    assert surface
    assert (rffi.getintfield(surface, 'c_w') == 150)
    assert (rffi.getintfield(surface, 'c_h') == 50)
    RSDL.FreeSurface(surface)
    RSDL.Quit()
def test_surface_basic():
    assert (RSDL.Init(RSDL.INIT_VIDEO) >= 0)
    surface = RSDL.CreateRGBSurface(0, 150, 50, 32, r_uint(255), r_uint(65280), r_uint(16711680), r_uint(4278190080))
    assert surface
    assert (rffi.getintfield(surface, 'c_w') == 150)
    assert (rffi.getintfield(surface, 'c_h') == 50)
    RSDL.FreeSurface(surface)
    RSDL.Quit()