import unittest
from clarity_ext.domain import Container, ContainerPosition, Well


class WellTest(unittest.TestCase):

    def test_index_down_correct(self):
        plate = Container(
            container_type=Container.CONTAINER_TYPE_96_WELLS_PLATE)

        def assert_well(location, expected):
            pos = ContainerPosition.create(location)
            well = Well(pos, plate)
            self.assertEqual(well.index_down_first, expected)

        assert_well("A:1", 1)
        assert_well("A:5", 33)
        assert_well("E:12", 93)
        assert_well("B:7", 50)

if __name__ == "__main__":
    unittest.main()

439934883289f5425bcbe08865dc1ca707051b13
<mask token>


class WellTest(unittest.TestCase):
    <mask token>


<mask token>

<mask token>


class WellTest(unittest.TestCase):

    def test_index_down_correct(self):
        plate = Container(container_type=Container.
            CONTAINER_TYPE_96_WELLS_PLATE)

        def assert_well(location, expected):
            pos = ContainerPosition.create(location)
            well = Well(pos, plate)
            self.assertEqual(well.index_down_first, expected)
        assert_well('A:1', 1)
        assert_well('A:5', 33)
        assert_well('E:12', 93)
        assert_well('B:7', 50)


<mask token>

<mask token>


class WellTest(unittest.TestCase):

    def test_index_down_correct(self):
        plate = Container(container_type=Container.
            CONTAINER_TYPE_96_WELLS_PLATE)

        def assert_well(location, expected):
            pos = ContainerPosition.create(location)
            well = Well(pos, plate)
            self.assertEqual(well.index_down_first, expected)
        assert_well('A:1', 1)
        assert_well('A:5', 33)
        assert_well('E:12', 93)
        assert_well('B:7', 50)


if __name__ == '__main__':
    unittest.main()

import unittest
from clarity_ext.domain import Container, ContainerPosition, Well


class WellTest(unittest.TestCase):

    def test_index_down_correct(self):
        plate = Container(container_type=Container.
            CONTAINER_TYPE_96_WELLS_PLATE)

        def assert_well(location, expected):
            pos = ContainerPosition.create(location)
            well = Well(pos, plate)
            self.assertEqual(well.index_down_first, expected)
        assert_well('A:1', 1)
        assert_well('A:5', 33)
        assert_well('E:12', 93)
        assert_well('B:7', 50)


if __name__ == '__main__':
    unittest.main()

import unittest
from clarity_ext.domain import Container, ContainerPosition, Well


class WellTest(unittest.TestCase):

    def test_index_down_correct(self):
        plate = Container(
            container_type=Container.CONTAINER_TYPE_96_WELLS_PLATE)

        def assert_well(location, expected):
            pos = ContainerPosition.create(location)
            well = Well(pos, plate)
            self.assertEqual(well.index_down_first, expected)

        assert_well("A:1", 1)
        assert_well("A:5", 33)
        assert_well("E:12", 93)
        assert_well("B:7", 50)

if __name__ == "__main__":
    unittest.main()
