def test_success(self): data = {'success': True} self.assertTrue(i3.success(data))
def test_success(self): data = {'success': True} self.assertEqual(i3.success(data), True) self.assertEqual(i3.success([data, {'success': False}]), [True, False]) data = {'success': False, 'error': 'Error message'} self.assertIsInstance(i3.success(data), i3.MessageError)