示例#1
0
 def setUp(self):
     super(TestIsNotificationsEnabledDecorator, self).setUp()
     self.f = mock.Mock()
     self.f.__name__ = 'f'
     self.decorated = rpc.if_notifications_enabled(self.f)
示例#2
0
文件: test_rpc.py 项目: andymcc/nova
 def setUp(self):
     super(TestIsNotificationsEnabledDecorator, self).setUp()
     self.f = mock.Mock()
     self.f.__name__ = 'f'
     self.decorated = rpc.if_notifications_enabled(self.f)