Beispiel #1
0
    def test_mme_matches(self, case_obj, mme_submission, institute_obj):
        """Testing calling the controller that collects all matches for a patient"""

        mme_base_url = "http://localhost:{port}".format(port=self.mock_server_port)
        case_obj["mme_submission"] = mme_submission
        data = controllers.mme_matches(case_obj, institute_obj, mme_base_url, MME_TOKEN)
        assert data
        assert data["institute"] == institute_obj
        assert data["case"] == case_obj
        query_patient = mme_submission["patients"][0]["id"]
        assert query_patient in data["matches"]
    def test_mme_matches(self, case_obj, mme_submission, institute_obj):
        """Testing calling the controller that collects all matches for a patient"""

        mme_base_url = 'http://localhost:{port}'.format(
            port=self.mock_server_port)
        case_obj['mme_submission'] = mme_submission
        data = controllers.mme_matches(case_obj, institute_obj, mme_base_url,
                                       MME_TOKEN)
        assert data
        assert data['institute'] == institute_obj
        assert data['case'] == case_obj
        query_patient = mme_submission['patients'][0]['id']
        assert query_patient in data['matches']