コード例 #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)
コード例 #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)
コード例 #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)
コード例 #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)