(self, namespace, single_element)
| 70 | ('actuator', True), |
| 71 | ('actuator', False)) |
| 72 | def test_id(self, namespace, single_element): |
| 73 | elements, full_identifiers = self.sample_elements(namespace, single_element) |
| 74 | actual = self.physics.bind(elements).element_id |
| 75 | if single_element: |
| 76 | expected = self.physics.model.name2id(full_identifiers, namespace) |
| 77 | else: |
| 78 | expected = [self.physics.model.name2id(name, namespace) |
| 79 | for name in full_identifiers] |
| 80 | np.testing.assert_array_equal(expected, actual) |
| 81 | |
| 82 | def assertCanGetAndSetBindingArray( |
| 83 | self, binding, attribute_name, named_indexer, full_identifiers): |
nothing calls this directly
no test coverage detected