예제 #1
0
def test_dispatch_index_kwargs(mock_event):
    events.dispatch('event', 'passed', _index='pallet', ash='ketchem')
    mock_event.assert_called_once_with(
        'event.pallet', {'event': 'event', 'status': 'passed', 'ash': 'ketchem'})
예제 #2
0
def test_dispatch_index(mock_event):
    events.dispatch('event', 'passed', _index='foo')
    mock_event.assert_called_once_with(
        'event.foo', {'event': 'event', 'status': 'passed'})
예제 #3
0
def test_dispatch(mock_event):
    events.dispatch('event', 'passed')
    mock_event.assert_called_once_with(
        'event', {'event': 'event', 'status': 'passed'})
예제 #4
0
def test_dispatch_index_kwargs(mock_event):
    events.dispatch('event', 'passed', _index='pallet', ash='ketchem')
    mock_event.assert_called_once_with(
        'event.pallet', {'event': 'event', 'status': 'passed', 'ash': 'ketchem'})
예제 #5
0
def test_dispatch_index(mock_event):
    events.dispatch('event', 'passed', _index='foo')
    mock_event.assert_called_once_with(
        'event.foo', {'event': 'event', 'status': 'passed'})
예제 #6
0
def test_dispatch(mock_event):
    events.dispatch('event', 'passed')
    mock_event.assert_called_once_with(
        'event', {'event': 'event', 'status': 'passed'})