Esempio n. 1
0
def test_invalid_signature(invalid_signature_order: Order):
    assert not invalid_signature_order.validate_signature()
    assert not invalid_signature_order.validate()
Esempio n. 2
0
def test_invalid_address(invalid_exchange_order: Order):
    assert not invalid_exchange_order.validate_addresses()
    assert not invalid_exchange_order.validate()
Esempio n. 3
0
def test_valid_order(valid_order: Order):
    assert valid_order.validate_addresses()
    assert valid_order.validate_signature()
    assert valid_order.validate()