Beispiel #1
0
    def test_invalid_prevails_over_all(self):
        xmls = {
            'valid': [True],
            'invalid': [True],
            'undefined': [True],
        }

        self.assertEqual(tags.widget_scielops_colors_weight(xmls),
                tags.STATUS_COLORS['invalid'])
Beispiel #2
0
    def test_explicitly_valid(self):
        xmls = {
            'valid': [True],
            'invalid': [],
            'undefined': [],
        }

        self.assertEqual(tags.widget_scielops_colors_weight(xmls),
                tags.STATUS_COLORS['valid'])