Exemple #1
0
 def _is_available_slot(self, location, share, slot, container_name):
     if pose_tracker.has_children(self.poses, location) and not share:
         raise RuntimeWarning(
             'Slot {0} has child. Use "containers.load(\'{1}\', \'{2}\', share=True)"'.format(  # NOQA
                 slot, container_name, slot))
     else:
         return True
def test_has_children(state):
    assert not has_children(state, '2-2')
    assert has_children(state, '2')