예제 #1
0
def peer(settings):
    opts = load_config(settings.settings_file)
    runner_peer(opts, upgrade=settings.upgrade, verbose=settings.verbose)
예제 #2
0
 def test_runner_peer(self, mock_setup_channel, mock_setup_peer):
     runner_peer(self.OPTS, upgrade=False)
     mock_setup_peer.assert_called_once_with(self.OPTS, upgrade=False)
     mock_setup_channel.assert_called_once_with(self.OPTS)