6531304bd3ea56ccd95068d646f1562fceb34653,tests/test_invalid_cnpj_cpf.py,TestInvalidCnpjCpfClassifier,test_is_invalid_cnpj,#TestInvalidCnpjCpfClassifier#,21

Before Change


        self.assertEqual(validation, True)

    def test_is_invalid_cnpj(self):
        value = self.dataset.iloc[1]["cnpj_cpf"]
        validation = self.subject.validate_cnpj_cpf(value)
        self.assertEqual(validation, False)

    def test_is_none(self):
        value = self.dataset.iloc[2]["cnpj_cpf"]

After Change


        self.assertEqual(self.subject.predict(self.dataset)[0], True)

    def test_is_invalid_cnpj(self):
        self.assertEqual(self.subject.predict(self.dataset)[1], False)

    def test_is_none(self):
        self.assertEqual(self.subject.predict(self.dataset)[2], False)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 8

Instances


Project Name: okfn-brasil/serenata-de-amor
Commit Name: 6531304bd3ea56ccd95068d646f1562fceb34653
Time: 2017-01-11
Author: iirineu@gmail.com
File Name: tests/test_invalid_cnpj_cpf.py
Class Name: TestInvalidCnpjCpfClassifier
Method Name: test_is_invalid_cnpj


Project Name: okfn-brasil/serenata-de-amor
Commit Name: 6531304bd3ea56ccd95068d646f1562fceb34653
Time: 2017-01-11
Author: iirineu@gmail.com
File Name: tests/test_invalid_cnpj_cpf.py
Class Name: TestInvalidCnpjCpfClassifier
Method Name: test_is_valid_cpf


Project Name: okfn-brasil/serenata-de-amor
Commit Name: 6531304bd3ea56ccd95068d646f1562fceb34653
Time: 2017-01-11
Author: iirineu@gmail.com
File Name: tests/test_invalid_cnpj_cpf.py
Class Name: TestInvalidCnpjCpfClassifier
Method Name: test_is_valid_cnpj


Project Name: okfn-brasil/serenata-de-amor
Commit Name: 6531304bd3ea56ccd95068d646f1562fceb34653
Time: 2017-01-11
Author: iirineu@gmail.com
File Name: tests/test_invalid_cnpj_cpf.py
Class Name: TestInvalidCnpjCpfClassifier
Method Name: test_is_invalid_cpf


Project Name: okfn-brasil/serenata-de-amor
Commit Name: 6531304bd3ea56ccd95068d646f1562fceb34653
Time: 2017-01-11
Author: iirineu@gmail.com
File Name: tests/test_invalid_cnpj_cpf.py
Class Name: TestInvalidCnpjCpfClassifier
Method Name: test_is_none