示例#1
0
def test_number_convert():
    eq_(spotlight._convert_number('0'), 0)
    eq_(spotlight._convert_number('0.2'), 0.2)
    eq_(spotlight._convert_number(True), True)
    eq_(spotlight._convert_number('evi'), 'evi')
    # Testing the footnote workaround.
    eq_(spotlight._convert_number([1]), '[1]')
示例#2
0
def test_number_convert():
    assert_equals(spotlight._convert_number('0'), 0)
    assert_equals(spotlight._convert_number('0.2'), 0.2)
    assert_equals(spotlight._convert_number(True), True)
    assert_equals(spotlight._convert_number('evi'), 'evi')
    # Testing the footnote workaround.
    assert_equals(spotlight._convert_number([1]), '[1]')
示例#3
0
def test_number_convert():
    eq_(spotlight._convert_number('0'), 0)
    eq_(spotlight._convert_number('0.2'), 0.2)
    eq_(spotlight._convert_number(True), True)
    eq_(spotlight._convert_number('evi'), 'evi')
    # Testing the footnote workaround.
    eq_(spotlight._convert_number([1]), '[1]')
示例#4
0
def test_number_convert():
    assert_equals(spotlight._convert_number('0'), 0)
    assert_equals(spotlight._convert_number('0.2'), 0.2)
    assert_equals(spotlight._convert_number(True), True)
    assert_equals(spotlight._convert_number('evi'), 'evi')
    # Testing the footnote workaround.
    assert_equals(spotlight._convert_number([1]), '[1]')
示例#5
0
def test_number_convert():
    eq_(spotlight._convert_number('0'), 0)
    eq_(spotlight._convert_number('0.2'), 0.2)
    eq_(spotlight._convert_number(True), True)
    eq_(spotlight._convert_number('evi'), 'evi')
示例#6
0
def test_number_convert():
    eq_(spotlight._convert_number('0'), 0)
    eq_(spotlight._convert_number('0.2'), 0.2)
    eq_(spotlight._convert_number(True), True)
    eq_(spotlight._convert_number('evi'), 'evi')