Ejemplo n.º 1
0
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.')
Ejemplo n.º 2
0
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.')