Esempio n. 1
0
def test_camelize():
    assert_equal(_camelize('remote_call'), 'remoteCall')
    assert_equal(_camelize('flat_shaded'), 'flatShaded')
    assert_equal(_camelize('near_clip'), 'nearClip')
    assert_equal(_camelize('radius_type'), 'radiusType')
    assert_equal(_camelize('aspect_ratio'), 'aspectRatio')
    assert_equal(_camelize('radius_segments'), 'radiusSegments')
    assert_equal(_camelize('sphere_detail'), 'sphereDetail')
    assert_equal(_camelize('contact_type'), 'contactType')
    assert_equal(_camelize('max_distance'), 'maxDistance')
    assert_equal(_camelize('max_angle'), 'maxAngle')
    assert_equal(_camelize('label_type'), 'labelType')
    assert_equal(_camelize('radial_segments'), 'radialSegments')
    assert_equal(_camelize('surface_type'), 'surfaceType')
    assert_equal(_camelize('probe_radius'), 'probeRadius')
    assert_equal(_camelize('scale_factor'), 'scaleFactor')

    # make sure this method does not change the camel
    assert_equal(_camelize('maxAngle'), 'maxAngle')
    assert_equal(_camelize('maxDistance'), 'maxDistance')
    assert_equal(_camelize('color'), 'color')
Esempio n. 2
0
def test_camelize():
    nt.assert_equal(_camelize('remote_call'), 'remoteCall')
    nt.assert_equal(_camelize('flat_shaded'), 'flatShaded')
    nt.assert_equal(_camelize('near_clip'), 'nearClip')
    nt.assert_equal(_camelize('radius_type'), 'radiusType')
    nt.assert_equal(_camelize('aspect_ratio'), 'aspectRatio')
    nt.assert_equal(_camelize('radius_segments'), 'radiusSegments')
    nt.assert_equal(_camelize('sphere_detail'), 'sphereDetail')
    nt.assert_equal(_camelize('contact_type'), 'contactType')
    nt.assert_equal(_camelize('max_distance'), 'maxDistance')
    nt.assert_equal(_camelize('max_angle'), 'maxAngle')
    nt.assert_equal(_camelize('label_type'), 'labelType')
    nt.assert_equal(_camelize('radial_segments'), 'radialSegments')
    nt.assert_equal(_camelize('surface_type'), 'surfaceType')
    nt.assert_equal(_camelize('probe_radius'), 'probeRadius')
    nt.assert_equal(_camelize('scale_factor'), 'scaleFactor')

    # make sure this method does not change the camel
    nt.assert_equal(_camelize('maxAngle'), 'maxAngle')
    nt.assert_equal(_camelize('maxDistance'), 'maxDistance')
    nt.assert_equal(_camelize('color'), 'color')