<commit_before>"""
Tests for the MerchantFulfillment API class.
"""
import unittest
import mws
from .utils import CommonRequestTestTools


class MerchantFulfillmentTestCase(unittest.TestCase, CommonRequestTestTools):
    """
    Test cases for MerchantFulfillment.
    """
    # TODO: Add remaining methods for MerchantFulfillment
    def setUp(self):
        self.api = mws.MerchantFulfillment(
            self.CREDENTIAL_ACCESS,
            self.CREDENTIAL_SECRET,
            self.CREDENTIAL_ACCOUNT,
            auth_token=self.CREDENTIAL_TOKEN
        )
        self.api._test_request_params = True

    # def test_get_eligible_shipping_services(self):
    #     """
    #     XYZ operation.
    #     """
    #     params = self.api.get_eligible_shipping_services()
    #     self.assert_common_params(params)
    #     assert params['Action'] == 'GetEligibleShippingServices'

    # def test_create_shipment(self):
    #     """
    #     XYZ operation.
    #     """
    #     params = self.api.create_shipment()
    #     self.assert_common_params(params)
    #     assert params['Action'] == 'CreateShipment'

    def test_get_shipment(self):
        """
        XYZ operation.
        """
        shipment_id = 'UCXN7ZubAj'
        params = self.api.get_shipment(
            shipment_id=shipment_id,
        )
        self.assert_common_params(params)
        assert params['Action'] == 'GetShipment'
        assert params['ShipmentId'] == shipment_id

    def test_cancel_shipment(self):
        """
        XYZ operation.
        """
        shipment_id = 'C6Pvk0b2yZ'
        params = self.api.cancel_shipment(
            shipment_id=shipment_id,
        )
        self.assert_common_params(params)
        assert params['Action'] == 'CancelShipment'
        assert params['ShipmentId'] == shipment_id<commit_msg>Replace assert with self.assertEqual<commit_after>"""
Tests for the MerchantFulfillment API class.
"""
import unittest
import mws
from .utils import CommonRequestTestTools


class MerchantFulfillmentTestCase(unittest.TestCase, CommonRequestTestTools):
    """
    Test cases for MerchantFulfillment.
    """
    # TODO: Add remaining methods for MerchantFulfillment
    def setUp(self):
        self.api = mws.MerchantFulfillment(
            self.CREDENTIAL_ACCESS,
            self.CREDENTIAL_SECRET,
            self.CREDENTIAL_ACCOUNT,
            auth_token=self.CREDENTIAL_TOKEN
        )
        self.api._test_request_params = True

    # def test_get_eligible_shipping_services(self):
    #     """
    #     XYZ operation.
    #     """
    #     params = self.api.get_eligible_shipping_services()
    #     self.assert_common_params(params)
    #     self.assertEqual(params['Action'], 'GetEligibleShippingServices')

    # def test_create_shipment(self):
    #     """
    #     XYZ operation.
    #     """
    #     params = self.api.create_shipment()
    #     self.assert_common_params(params)
    #     self.assertEqual(params['Action'], 'CreateShipment')

    def test_get_shipment(self):
        """
        XYZ operation.
        """
        shipment_id = 'UCXN7ZubAj'
        params = self.api.get_shipment(
            shipment_id=shipment_id,
        )
        self.assert_common_params(params)
        self.assertEqual(params['Action'], 'GetShipment')
        self.assertEqual(params['ShipmentId'], shipment_id)

    def test_cancel_shipment(self):
        """
        XYZ operation.
        """
        shipment_id = 'C6Pvk0b2yZ'
        params = self.api.cancel_shipment(
            shipment_id=shipment_id,
        )
        self.assert_common_params(params)
        self.assertEqual(params['Action'], 'CancelShipment')
        self.assertEqual(params['ShipmentId'], shipment_id)
{'fraction_non_alphanumeric': 0.10195343858710196, 'fraction_numerical': 0.0021407546160021407, 'mean_word_length': 2.4772093023255812, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2268211', 'n_tokens_mistral': 1164, 'n_tokens_neox': 1147, 'n_words': 176}