# Path: snakemakelib/bio/ngs/rnaseq/tuxedo.py
# class TuxedoReadGroup(ReadGroup):
#     _group_dict = {'ID' : 'id', 'CN' : 'center',
#                    'DS' : 'description', 'DT' : 'date',
#                    'FO' : 'floworder', 'KS' : 'keysequence',
#                    'LB' : 'library', 'PG' : 'program',
#                    'PI' : 'insertsize', 'PL': 'platform',
#                    'PU' : 'platform-unit', 'SM' : 'sample'}
# 
#     def __init__(self, opt_prefix="--rg-", *args, **kwargs):
#         ReadGroup.__init__(self, *args, **kwargs)
#         self._opt_prefix = opt_prefix


import unittest
import logging
from snakemakelib.bio.ngs.rnaseq.tuxedo import TuxedoReadGroup
# Copyright (C) 2015 by Per Unneberg
# pylint: disable=R0904

logger = logging.getLogger(__name__)

class TestTuxedoReadGroup(unittest.TestCase):
    """Test TuxedoReadGroup class"""
    def test_rg_init(self):
        """Test initializing TuxedoReadGroup"""
        rg = TuxedoReadGroup(regexp="test", ID='test', DT="120924")
        self.assertEqual(str(rg), '--rg-date 2012-09-24 --rg-id test')

# Path: snakemakelib/bio/ngs/rnaseq/tuxedo.py
# class TuxedoReadGroup(ReadGroup):
#     _group_dict = {'ID' : 'id', 'CN' : 'center',
#                    'DS' : 'description', 'DT' : 'date',
#                    'FO' : 'floworder', 'KS' : 'keysequence',
#                    'LB' : 'library', 'PG' : 'program',
#                    'PI' : 'insertsize', 'PL': 'platform',
#                    'PU' : 'platform-unit', 'SM' : 'sample'}
# 
#     def __init__(self, opt_prefix="--rg-", *args, **kwargs):
#         ReadGroup.__init__(self, *args, **kwargs)
#         self._opt_prefix = opt_prefix


# Path: snakemakelib/bio/ngs/rnaseq/tests/test_tuxedo.py
import unittest
import logging
from snakemakelib.bio.ngs.rnaseq.tuxedo import TuxedoReadGroup

# Copyright (C) 2015 by Per Unneberg
# pylint: disable=R0904

logger = logging.getLogger(__name__)

class TestTuxedoReadGroup(unittest.TestCase):
    """Test TuxedoReadGroup class"""
    def test_rg_init(self):
        """Test initializing TuxedoReadGroup"""
        rg = TuxedoReadGroup(regexp="test", ID='test', DT="120924")
        self.assertEqual(str(rg), '--rg-date 2012-09-24 --rg-id test')

        rg = TuxedoReadGroup(regexp="test", **{'ID':'test', 'DT':"120924"})