def test_false(self, mock_kwargs): """Ensure function returns ``False`` when given ``mock_kwargs``.""" self.assertFalse(client._content_type_is_json(mock_kwargs))
def test_true(self): """Ensure function returns ``True`` when appropriate.""" mock_kwargs = {'headers': {'content-type': 'appLICatiON/JSoN'}} self.assertTrue(client._content_type_is_json(mock_kwargs))