Python neutron_lib.callbacks.registry.receives() Examples

The following are 1 code examples of neutron_lib.callbacks.registry.receives(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module neutron_lib.callbacks.registry , or try the search function .
Example #1
Source File: test_registry.py    From neutron-lib with Apache License 2.0 5 votes vote down vote up
def test_no_strings_in_events_arg(self):
        with testtools.ExpectedException(AssertionError):
            registry.receives(resources.PORT, events.AFTER_CREATE)