Esempio 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)
    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)
Esempio 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)
    def test_no_rule(self):
        """Test building a shape where there is not a shape key."""
        result = manager._build_shape({})

        self.assertIsNone(result)