BBR 1 Ebene

Committer:
borlanic
Date:
Mon May 14 11:29:06 2018 +0000
Revision:
0:fbdae7e6d805
BBR

Who changed what in which revision?

UserRevisionLine numberNew contents of line
borlanic 0:fbdae7e6d805 1 # mbed SDK
borlanic 0:fbdae7e6d805 2 # Copyright (c) 2011-2013 ARM Limited
borlanic 0:fbdae7e6d805 3 #
borlanic 0:fbdae7e6d805 4 # Licensed under the Apache License, Version 2.0 (the "License");
borlanic 0:fbdae7e6d805 5 # you may not use this file except in compliance with the License.
borlanic 0:fbdae7e6d805 6 # You may obtain a copy of the License at
borlanic 0:fbdae7e6d805 7 #
borlanic 0:fbdae7e6d805 8 # http://www.apache.org/licenses/LICENSE-2.0
borlanic 0:fbdae7e6d805 9 #
borlanic 0:fbdae7e6d805 10 # Unless required by applicable law or agreed to in writing, software
borlanic 0:fbdae7e6d805 11 # distributed under the License is distributed on an "AS IS" BASIS,
borlanic 0:fbdae7e6d805 12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
borlanic 0:fbdae7e6d805 13 # See the License for the specific language governing permissions and
borlanic 0:fbdae7e6d805 14 # limitations under the License.
borlanic 0:fbdae7e6d805 15
borlanic 0:fbdae7e6d805 16 from __future__ import print_function, division, absolute_import
borlanic 0:fbdae7e6d805 17
borlanic 0:fbdae7e6d805 18 from . import Notifier
borlanic 0:fbdae7e6d805 19
borlanic 0:fbdae7e6d805 20 class MockNotifier(Notifier):
borlanic 0:fbdae7e6d805 21 """Collect notifications
borlanic 0:fbdae7e6d805 22 """
borlanic 0:fbdae7e6d805 23 def __init__(self):
borlanic 0:fbdae7e6d805 24 self.messages = []
borlanic 0:fbdae7e6d805 25
borlanic 0:fbdae7e6d805 26 def notify(self, message):
borlanic 0:fbdae7e6d805 27 self.messages.append(message)