def test_batch_init(self):
    assert (self.batch is not None), 'Batch is not set up'
    assert isinstance(self.batch.oparser, OptionParser), 'Option parser is not initialized'
    assert (self.batch.options is None), 'Options is initialized'
    assert (self.batch.args is None), 'Args is initialized'
    assert_equal(self.batch.data, {})
    assert_equal(self.batch._task_dup_num, False)
    assert_equal(len(self.batch.identifier), 6)
    assert re.match('[{0}{1}]{{6}}'.format(string.ascii_uppercase, string.digits), self.batch.identifier)
def test_batch_init(self):
    assert (self.batch is not None), 'Batch is not set up'
    assert isinstance(self.batch.oparser, OptionParser), 'Option parser is not initialized'
    assert (self.batch.options is None), 'Options is initialized'
    assert (self.batch.args is None), 'Args is initialized'
    assert_equal(self.batch.data, {})
    assert_equal(self.batch._task_dup_num, False)
    assert_equal(len(self.batch.identifier), 6)
    assert re.match('[{0}{1}]{{6}}'.format(string.ascii_uppercase, string.digits), self.batch.identifier)