def test_clean_order_capture(): amount = Mock(spec='string') errors = clean_order_capture(None, amount, []) assert errors[0].field == 'payment' assert errors[0].message == ( 'There\'s no payment associated with the order.')
def test_clean_order_capture(): amount = Mock(spec='string') errors = clean_order_capture(None, amount, []) assert errors[0].field == 'payment' assert errors[0].message == ( 'There\'s no payment associated with the order.')