Exemplo n.º 1
0
    def test_decimal_parsing_empty(self):
        parser = CheddarOutputParser()

        expected = None
        result = parser.parse_decimal('')

        self.assertEquals(expected, result)
Exemplo n.º 2
0
    def test_decimal_parsing_empty(self):
        parser = CheddarOutputParser()

        expected = None
        result = parser.parse_decimal('')

        self.assertEquals(expected, result)
Exemplo n.º 3
0
 def test_decimal_parsing(self):
     parser = CheddarOutputParser()
     
     expected = Decimal('2.345')
     result = parser.parse_decimal('2.345')
     
     self.assertEquals(expected, result)
Exemplo n.º 4
0
    def test_decimal_parsing(self):
        parser = CheddarOutputParser()

        expected = Decimal('2.345')
        result = parser.parse_decimal('2.345')

        self.assertEquals(expected, result)
Exemplo n.º 5
0
    def test_decimal_parsing(self):
        ''' Test decimal parsing with decimal string. '''
        parser = CheddarOutputParser()

        expected = Decimal('2.345')
        result = parser.parse_decimal('2.345')

        self.assertEquals(expected, result)
Exemplo n.º 6
0
    def test_decimal_parsing_empty(self):
        ''' Test decimal parsing with empty string. '''
        parser = CheddarOutputParser()

        expected = None
        result = parser.parse_decimal('')

        self.assertEquals(expected, result)
Exemplo n.º 7
0
 def test_decimal_parsing_error(self):
     parser = CheddarOutputParser()
     
     parser.parse_decimal('test')
Exemplo n.º 8
0
    def test_decimal_parsing_error(self):
        ''' Test decimal parsing with non-decimal string. '''
        parser = CheddarOutputParser()

        parser.parse_decimal('test')
Exemplo n.º 9
0
    def test_decimal_parsing_error(self):
        parser = CheddarOutputParser()

        parser.parse_decimal('test')