Exemplo n.º 1
0
 def test_process_commodity_code_for_greater_than_10_digits_entered(self):
     code = process_commodity_code("410411590123")
     self.assertEqual(code, "4104115900")
Exemplo n.º 2
0
 def test_process_commodity_code_for_seven_digits_entered(self):
     code = process_commodity_code("4101203")
     self.assertEqual(code, "4101200000")
Exemplo n.º 3
0
 def test_process_commodity_code_for_ten_digits_entered(self):
     code = process_commodity_code("4104115900")
     self.assertEqual(code, "4104115900")
Exemplo n.º 4
0
 def test_process_commodity_code_for_five_digits_entered(self):
     code = process_commodity_code("41012")
     self.assertEqual(code, "4101000000")
Exemplo n.º 5
0
 def test_process_commodity_code_for_six_digits_ending_with_0000_entered(self):
     code = process_commodity_code("210000")
     self.assertEqual(code, "2100000000")
Exemplo n.º 6
0
 def test_process_commodity_code_for_two_digits_entered(self):
     code = process_commodity_code("21")
     self.assertEqual(code, "2100000000")
Exemplo n.º 7
0
 def test_process_commodity_code_for_99_digit_entered(self):
     code = process_commodity_code("99")
     self.assertEqual(code, "9999000000")
Exemplo n.º 8
0
 def test_process_commodity_code_for_single_digit_entered(self):
     code = process_commodity_code("2")
     self.assertEqual(code, "0200000000")