Example #1
0
    def test_unwind_labels__main_case(self):
        pattern_lbl = {'r': True}
        vars = {'r', 'g'}

        concrete_labels = _unwind_label(pattern_lbl, vars)

        _assert_equal_list_dict(
            concrete_labels,
            [{'r': True, 'g': True}, {'r': True, 'g': False}])
Example #2
0
    def test_unwind_labels__main_case(self):
        pattern_lbl = {'r': True}
        vars = {'r', 'g'}

        concrete_labels = _unwind_label(pattern_lbl, vars)

        _assert_equal_list_dict(concrete_labels, [{
            'r': True,
            'g': True
        }, {
            'r': True,
            'g': False
        }])
Example #3
0
    def test_unwind_labels__concrete_lbl(self):
        pattern_lbl = {'r': True}
        vars = {'r'}

        concrete_labels = _unwind_label(pattern_lbl, vars)
        assert concrete_labels == [{'r': True}]
Example #4
0
    def test_unwind_labels__concrete_lbl(self):
        pattern_lbl = {'r': True}
        vars = {'r'}

        concrete_labels = _unwind_label(pattern_lbl, vars)
        assert concrete_labels == [{'r': True}]