Ejemplo n.º 1
0
 def setUp(self):
     super(TestGroupDistributorEnsureUnitsDownloaded, self).setUp()
     self.distributor = GroupDistributor()
     self.group = RepositoryGroup(id='g1',
                                  display_name='g1',
                                  description='g1',
                                  notes={},
                                  repo_ids=['repo1', 'repo2'])
Ejemplo n.º 2
0
 def test_cancel_publish_group_calls_sys_exit(self, mock_sys_exit):
     GroupDistributor().cancel_publish_group(mock.Mock(), mock.Mock())
     mock_sys_exit.assert_called_once_with()