def test_joblist_multi(self): """Test that asking for multiple jobs does not result in duplications.""" scheduler = SlurmScheduler() command = scheduler._get_joblist_command(jobs=['123', '456']) # pylint: disable=protected-access assert '123,456' in command assert '456,456' not in command
def test_joblist_single(self): """Test that asking for a single job results in duplication of the list.""" scheduler = SlurmScheduler() command = scheduler._get_joblist_command(jobs=['123']) # pylint: disable=protected-access assert '123,123' in command