def test_lower_items(self): """ Tests :meth:`colour.utilities.data_structures.CaseInsensitiveMapping.lower_items` # noqa method. """ mapping = CaseInsensitiveMapping(John='Doe', Jane='Doe') self.assertListEqual(sorted([item for item in mapping.lower_items()]), [('jane', 'Doe'), ('john', 'Doe')])
def test_lower_items(self): """ Tests :meth:`colour.utilities.data_structures.\ CaseInsensitiveMapping.lower_items` method. """ mapping = CaseInsensitiveMapping(John='Doe', Jane='Doe') self.assertListEqual(sorted([item for item in mapping.lower_items()]), [('jane', 'Doe'), ('john', 'Doe')])
def test_lower_items(self): """ Test :meth:`colour.utilities.data_structures.\ CaseInsensitiveMapping.lower_items` method. """ mapping = CaseInsensitiveMapping(John="Doe", Jane="Doe") self.assertListEqual( sorted(item for item in mapping.lower_items()), [("jane", "Doe"), ("john", "Doe")], )