def test(self): """Test building a shape where there is a shape key.""" shape = "shape" mock_rule = {consts.RULE_SHAPE_KEY: shape} result = manager._build_shape(mock_rule) self.assertEqual(result, shape)
def test_no_rule(self): """Test building a shape where there is not a shape key.""" result = manager._build_shape({}) self.assertIsNone(result)