# Path: timestream/util/layouts.py
# LOG = logging.getLogger("timestreamlib")
# def traypos_to_chamber_index(traypos, tray_cap=20, col_cap=5):


from unittest import TestCase
from timestream.util import (
    layouts,  # module
)



class TestTrayPosToChamberIndex(TestCase):
    _multiprocess_can_split_ = True
    maxDiff = None

    def test_tray_pos_to_chamber_idx(self):
        """Tests for ts.util.traypos_to_chamber_index"""
        self.assertEqual(layouts.traypos_to_chamber_index("1A1"), 1)
        self.assertEqual(layouts.traypos_to_chamber_index("01A1"), 1)
        self.assertEqual(layouts.traypos_to_chamber_index("1a1"), 1)

# Path: timestream/util/layouts.py
# LOG = logging.getLogger("timestreamlib")
# def traypos_to_chamber_index(traypos, tray_cap=20, col_cap=5):


# Path: tests/test_util_layouts.py
from unittest import TestCase
from timestream.util import (
    layouts,  # module
)




class TestTrayPosToChamberIndex(TestCase):
    _multiprocess_can_split_ = True
    maxDiff = None

    def test_tray_pos_to_chamber_idx(self):
        """Tests for ts.util.traypos_to_chamber_index"""
        self.assertEqual(layouts.traypos_to_chamber_index("1A1"), 1)
        self.assertEqual(layouts.traypos_to_chamber_index("01A1"), 1)
        self.assertEqual(layouts.traypos_to_chamber_index("1a1"), 1)

        self.assertEqual(layouts.traypos_to_chamber_index("01a1"), 1)