def setUp(self): super(OfflineDistributeTest, self).setUp() self.distributor = OfflineDistributor(self.config) self.sender = Mock(spec=Sender) self.distributor._sender = self.sender self.store = self.distributor._store self.msg = load_msg('sample')
# This script creates a Distributor and updates its status. As a # config file, it takes the config.py file that is in the same # directory. from config import py from deliver.distribute import OfflineDistributor d = OfflineDistributor(py) d.update()