Ejemplo n.º 1
0
    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)
Ejemplo n.º 2
0
    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)
Ejemplo n.º 3
0
    def test_no_rule(self):
        """Test building a shape where there is not a shape key."""
        result = manager._build_shape({})

        self.assertIsNone(result)
Ejemplo n.º 4
0
    def test_no_rule(self):
        """Test building a shape where there is not a shape key."""
        result = manager._build_shape({})

        self.assertIsNone(result)