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

Method assertHasAttr

dm_control/mjcf/element_test.py:61–62  ·  view source on GitHub ↗
(self, obj, attrib)

Source from the content-addressed store, hash-verified

59 self.assertFalse(other.is_same_as(mjcf_model))
60
61 def assertHasAttr(self, obj, attrib):
62 self.assertTrue(hasattr(obj, attrib))
63
64 def assertNotHasAttr(self, obj, attrib):
65 self.assertFalse(hasattr(obj, attrib))

Callers 2

_test_attributesMethod · 0.95
_test_childrenMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected