54542222784567071f368d9e07900621afb15b8d,jarbas/api/tests/test_reimbursement_view.py,TestRetrieveApi,test_contents,#TestRetrieveApi#,126

Before Change



    def test_contents(self):
        contents = loads(self.resp.content.decode("utf-8"))
        expected = dict(
            applicant_id=13,
            batch_number=9,
            cnpj_cpf="11111111111111",
            congressperson_document=2,
            congressperson_id=1,
            congressperson_name="Roger That",
            document_id=42,
            document_number="6",
            document_type=7,
            document_value=8.90,
            installment=7,
            issue_date="1970-01-01",
            leg_of_the_trip="8",
            month=1,
            party="Partido",
            passenger="John Doe",
            all_reimbursement_numbers=[10, 11],
            all_reimbursement_values=[12.13, 14.15],
            all_net_values=[1.99, 2.99],
            remark_value=1.23,
            state="UF",
            subquota_description="Subquota description",
            subquota_group_description="Subquota group desc",
            subquota_group_id=5,
            subquota_id=4,
            supplier="Acme",
            term=1970,
            term_id=3,
            total_net_value=4.56,
            total_reimbursement_value=None,
            year=1970,
            probability=0.5,
            suspicions=suspicions,
            last_update="1970-01-01T00:00:00Z",
            available_in_latest_dataset=True,
            receipt=dict(fetched=False, url=None)
        )
        self.assertEqual(expected, contents)


class TestReceiptApi(TestCase):

After Change


        for result_attr, result_value in contents.items():
            if not hasattr(self.reimbursement, result_attr):
                continue
            expected_value = getattr(self.reimbursement, result_attr)
            self.assertEqual(str(result_value), str(expected_value))


class TestReceiptApi(TestCase):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: okfn-brasil/serenata-de-amor
Commit Name: 54542222784567071f368d9e07900621afb15b8d
Time: 2017-05-26
Author: eu@caiocarrara.com.br
File Name: jarbas/api/tests/test_reimbursement_view.py
Class Name: TestRetrieveApi
Method Name: test_contents


Project Name: explosion/thinc
Commit Name: 3d12c536e66ff4414860b8de1467fe56ede54063
Time: 2019-11-28
Author: adrianeboyd@gmail.com
File Name: thinc/neural/_classes/model.py
Class Name: Model
Method Name: define_operators


Project Name: bokeh/bokeh
Commit Name: ce4cf57bd51148b0eeb6c4ddfb28605a5db9af15
Time: 2016-02-01
Author: bryanv@continuum.io
File Name: bokeh/core/compat/bokeh_renderer.py
Class Name: BokehRenderer
Method Name: close_axes