def test_publisher_structure():
    '\n    The module.publisher itself is a bit of a skeleton...\n    '
    params = {'1': 1, '2': 2, 'channel_name': 'test'}
    test_publisher = Publisher(params)
    assert (test_publisher.get_parameters() == {'1': 1, '2': 2, 'channel_name': 'test'})
    test_publisher.set_data_block('example')
    assert (test_publisher.get_data_block() == 'example')
    assert (test_publisher._consumes == {})
    test_publisher.publish()
    test_publisher.publish(data_block='asdf')
    test_publisher.shutdown()
The module.publisher itself is a bit of a skeleton...
def test_publisher_structure():
    '\n    \n    '
    params = {'1': 1, '2': 2, 'channel_name': 'test'}
    test_publisher = Publisher(params)
    assert (test_publisher.get_parameters() == {'1': 1, '2': 2, 'channel_name': 'test'})
    test_publisher.set_data_block('example')
    assert (test_publisher.get_data_block() == 'example')
    assert (test_publisher._consumes == {})
    test_publisher.publish()
    test_publisher.publish(data_block='asdf')
    test_publisher.shutdown()