adding format_cnpj method by antoniamaia · Pull Request #52 · brazilian-utils/python
Expand Up
@@ -16,6 +16,7 @@
validate,
generate,
is_valid,
format_cnpj,
)
from unittest import TestCase, main
Expand All @@ -35,6 +36,12 @@ def test_display(self): assert display("0000000000000a") is None assert display("0000000000000") is None
def test_format_cnpj(self): assert format_cnpj("00000000000109") == "00.000.000/0001-09" assert format_cnpj("00000000000000") is None assert format_cnpj("0000000000000a") is None assert format_cnpj("0000000000000") is None
def test_hashdigit(self): assert hashdigit("00000000000000", 13) == 0 assert hashdigit("00000000000000", 14) == 0 Expand Down
Expand All @@ -35,6 +36,12 @@ def test_display(self): assert display("0000000000000a") is None assert display("0000000000000") is None
def test_format_cnpj(self): assert format_cnpj("00000000000109") == "00.000.000/0001-09" assert format_cnpj("00000000000000") is None assert format_cnpj("0000000000000a") is None assert format_cnpj("0000000000000") is None
def test_hashdigit(self): assert hashdigit("00000000000000", 13) == 0 assert hashdigit("00000000000000", 14) == 0 Expand Down