예제 #1
0
 def test_suffix_collapse_no_tags(self):
     ''' Verifica se retorna os sufixos corretamente - collapsed with no tags'''
     (_valor, suffix_string,
      _order_magnitude) = NumberFormatter.get_value_suffix(
          10000, 'inteiro', {
              "format": 'real',
              "precision": 1,
              "uiTags": False
          }, True)
     self.assertEqual(suffix_string, 'mil')
예제 #2
0
 def test_suffix_percent_no_tags(self):
     ''' Verifica se retorna os sufixos corretamente - percentual sem tag '''
     (_valor, suffix_string,
      _order_magnitude) = NumberFormatter.get_value_suffix(
          98.76, 'porcentagem', {}, False)
     self.assertEqual(suffix_string, '%')