# Path: smarkets/streaming_api/seto.py

# 
# Path: smarkets/streaming_api/utils.py
# def set_payload_message(payload, message):
#     underscore_form = camel_case_to_underscores(type(message).__name__)
#     payload_type = getattr(seto, 'PAYLOAD_' + underscore_form.upper())
#     payload.type = payload_type
#     getattr(payload, underscore_form).CopyFrom(message)


from nose.tools import eq_
from smarkets.streaming_api.seto import OrderCreate, Payload, PAYLOAD_ORDER_CREATE
from smarkets.streaming_api.utils import set_payload_message
from __future__ import absolute_import, division, print_function, unicode_literals




def test_set_payload_message():
    payload = Payload()

# Path: smarkets/streaming_api/seto.py

# 
# Path: smarkets/streaming_api/utils.py
# def set_payload_message(payload, message):
#     underscore_form = camel_case_to_underscores(type(message).__name__)
#     payload_type = getattr(seto, 'PAYLOAD_' + underscore_form.upper())
#     payload.type = payload_type
#     getattr(payload, underscore_form).CopyFrom(message)


# Path: smarkets/tests/streaming_api/utils.py
from nose.tools import eq_
from smarkets.streaming_api.seto import OrderCreate, Payload, PAYLOAD_ORDER_CREATE
from smarkets.streaming_api.utils import set_payload_message

from __future__ import absolute_import, division, print_function, unicode_literals




def test_set_payload_message():
    payload = Payload()

    assert payload.type != PAYLOAD_ORDER_CREATE