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]')
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]')
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')