'Tests exception is thrown when params to payment_accepted don\'t have required key
or have an bad value'

def test_payment_accepted_invalid_dict(self):

    baseline = {'orderNumber': '1', 'orderCurrency': 'usd', 'decision': 'ACCEPT'}
    wrong = {'orderNumber': 'k'}
    for key in baseline:
        params = baseline.copy()
        del params[key]
        with self.assertRaises(CCProcessorDataException):
            payment_accepted(params)
    for key in wrong:
        params = baseline.copy()
        params[key] = wrong[key]
        with self.assertRaises(CCProcessorDataException):
            payment_accepted(params)
