MCPcopy Create free account
hub / github.com/google-deepmind/dm_control / test_binding

Method test_binding

dm_control/viewer/user_input_test.py:49–53  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

47 user_input._NO_EXCLUSIVE_KEY, self.input_map._active_exclusive)
48
49 def test_binding(self):
50 self.input_map.bind(self.callback, user_input.KEY_UP)
51 expected_dict = {
52 (user_input.KEY_UP, user_input.MOD_NONE): (False, self.callback)}
53 self.assertDictEqual(expected_dict, self.input_map._action_callbacks)
54
55 def test_binding_exclusive(self):
56 self.input_map.bind(self.callback, user_input.Exclusive(user_input.KEY_UP))

Callers

nothing calls this directly

Calls 1

bindMethod · 0.45

Tested by

no test coverage detected