Ejemplo n.º 1
0
 def test_cnpj_calculate_second_digit_false(self):
     correct_second_digit = '2'
     updated_cnpj_number = self.first_part_cnpj_number + \
         calc.calculate_first_digit(
             self.first_part_cnpj_number)
     self.assertNotEqual(correct_second_digit,
                         calc.calculate_second_digit(updated_cnpj_number))
Ejemplo n.º 2
0
 def test_cpf_calculate_second_digit_false(self):
     updated_cpf_number = self.first_part_cpf_number + \
         calc.calculate_first_digit(
             self.first_part_cpf_number)
     incorrect_second_digit = '7'
     self.assertNotEqual(incorrect_second_digit,
                         calc.calculate_second_digit(updated_cpf_number))
Ejemplo n.º 3
0
 def test_cnpj_calculate_second_digit_false(self):
     correct_second_digit = '2'
     updated_cnpj_number = self.first_part_cnpj_number + \
         calc.calculate_first_digit(
             self.first_part_cnpj_number)
     self.assertNotEqual(correct_second_digit,
                         calc.calculate_second_digit(updated_cnpj_number))
Ejemplo n.º 4
0
 def test_cpf_calculate_second_digit_true(self):
     updated_cpf_number = self.first_part_cpf_number + \
         calc.calculate_first_digit(
             self.first_part_cpf_number)
     correct_second_digit = '5'
     self.assertEqual(correct_second_digit,
                      calc.calculate_second_digit(updated_cpf_number))
Ejemplo n.º 5
0
 def test_cpf_calculate_second_digit_false(self):
     updated_cpf_number = self.first_part_cpf_number + \
         calc.calculate_first_digit(
             self.first_part_cpf_number)
     incorrect_second_digit = '7'
     self.assertNotEqual(incorrect_second_digit,
                         calc.calculate_second_digit(updated_cpf_number))
Ejemplo n.º 6
0
 def test_cpf_calculate_second_digit_true(self):
     updated_cpf_number = self.first_part_cpf_number + \
         calc.calculate_first_digit(
             self.first_part_cpf_number)
     correct_second_digit = '5'
     self.assertEqual(correct_second_digit,
                      calc.calculate_second_digit(updated_cpf_number))
Ejemplo n.º 7
0
 def test_cnpj_calculate_first_digit_false(self):
     correct_first_digit = '7'
     self.assertNotEqual(
         correct_first_digit,
         calc.calculate_first_digit(self.first_part_cnpj_number))
Ejemplo n.º 8
0
 def test_cpf_calculate_first_digit_false(self):
     incorrect_first_digit = '6'
     self.assertNotEqual(
         incorrect_first_digit,
         calc.calculate_first_digit(self.first_part_cpf_number))
Ejemplo n.º 9
0
 def test_cpf_calculate_first_digit_true(self):
     correct_first_digit = '3'
     self.assertEqual(
         correct_first_digit,
         calc.calculate_first_digit(self.first_part_cpf_number))
Ejemplo n.º 10
0
 def test_cnpj_calculate_first_digit_false(self):
     correct_first_digit = '7'
     self.assertNotEqual(correct_first_digit,
                         calc.calculate_first_digit(self.first_part_cnpj_number))
Ejemplo n.º 11
0
 def test_cpf_calculate_first_digit_false(self):
     incorrect_first_digit = '6'
     self.assertNotEqual(incorrect_first_digit,
                         calc.calculate_first_digit(self.first_part_cpf_number))
Ejemplo n.º 12
0
 def test_cpf_calculate_first_digit_true(self):
     correct_first_digit = '3'
     self.assertEqual(correct_first_digit,
                      calc.calculate_first_digit(self.first_part_cpf_number))