Beispiel #1
0
def test_order_params_valid():
    order_params = OrderParams.new()
    assert not order_params.is_valid

    order_params.client = 'foo'

    assert not order_params.is_valid

    order_params.description = 'bar'

    assert order_params.is_valid
Beispiel #2
0
def test_order_params_new(mock_edd):
    mock_edd.return_value = datetime.date(2015, 11, 2)

    order_params = OrderParams.new()
    assert order_params.estimated_delivery_date == datetime.date(2015, 11, 2)