def test_cpf_without_formatting_validate_return_false(self): cpf = CPF('0107874008') self.assertFalse(cpf.validate())
def test_cpf_with_formatting_validate_return_false(self): cpf = CPF('010.787.400-8') self.assertFalse(cpf.validate())
def setUp(self): self.cpf_with_formatting = CPF('010.787.400-89') self.cpf_without_formatting = CPF('01078740089')
def test_cpf_validate_size_return_false(self): cpf = CPF('1234567891') self.assertFalse(cpf.validate_size())
def format_cpf(self): return CPF(self.cpf).format()