Example #1
0
    def test_check_item_at_slot_with_item_not_present(self):

        conveyor_belt = ConveyorBeltFactory()

        assert conveyor_belt.check_item_at_slot(
            0).name == conveyor_belt.factory_config.empty_code
Example #2
0
    def test_check_item_at_slot_with_item_present(self):
        conveyor_belt = ConveyorBeltFactory()
        conveyor_belt.enqueue(1)

        assert conveyor_belt.check_item_at_slot(0) == 1