Ejemplo n.º 1
0
 def test_success(self):
     data = {'success': True}
     self.assertTrue(i3.success(data))
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
 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)