def test_allowed_classes(self):
        self.attrs['allow_classes']['p'] = ['yellow']
        self.attrs['allow_classes']['b'] = lambda x: x in 'b'

        self.assertSanitize('<p class="yellow green">',
                            '<p class="yellow"></p>')

        self.assertSanitize('<sup class="yellow green" title="Alt">a</sup>',
                            '<sup title="Alt">a</sup>')

        self.assertSanitize('<b class="has_b has_c">a</b>',
                            '<b class="has_b">a</b>')
dataset/ETHPy150Open SmartTeleMax/iktomi/tests/utils/html.py/TestSanitizer.test_allowed_classes/swapped operands of `in`