Esempio n. 1
0
 def test_handle_block_group_pkg(self):
     """Test handle_block_group_pkg function"""
     arguments = ['fedora-build', 'build']
     for pkg in [['bash'], ['sed', 'less', 'awk']]:
         handle_block_group_pkg(self.options, self.session, arguments + pkg)
         calls = [mock.call(arguments[0], arguments[1], p) for p in pkg]
         self.session.groupPackageListBlock.assert_has_calls(calls)
         self.activate_session.assert_called_with(self.session, self.options)
 def test_handle_block_group_pkg(self):
     """Test handle_block_group_pkg function"""
     arguments = ['fedora-build', 'build']
     for pkg in [['bash'], ['sed', 'less', 'awk']]:
         handle_block_group_pkg(self.options, self.session, arguments + pkg)
         calls = [mock.call(arguments[0], arguments[1], p) for p in pkg]
         self.session.groupPackageListBlock.assert_has_calls(calls)
         self.activate_session.assert_called_with(self.session, self.options)