'Tests that strict mode of enforce_ordering fails on bad ordering'

def test_enforce_ordering_fail(self):

    message0 = Message({u'reply_channel': u'test-reply-c', u'order': 0}, u'websocket.connect', channel_layers[DEFAULT_CHANNEL_LAYER])
    message2 = Message({u'reply_channel': u'test-reply-c', u'order': 2}, u'websocket.receive', channel_layers[DEFAULT_CHANNEL_LAYER])
    @enforce_ordering
    def inner(message):
        pass
    inner(message0)
    inner(message2)
    wait_channel = (u'__wait__.%s' % u'test-reply-c')
    next_message = self.get_next_message(wait_channel)
    self.assertNotEqual(next_message, None)
