예제 #1
0
 def test_serialize(self):
     error = Result('tox')
     error.update_error('Command not found')
     self.assertEqual(Result.serialize(error), error.__dict__)
     self.assertEqual(Result.serialize(Result.serialize(error)), error.__dict__)
예제 #2
0
 def test_update_error(self):
     error = Result('tox')
     error.update_error('Command not found')
     self.assertFalse(error.succeeded)
     self.assertEquals(error.log, 'Command not found')
     self.assertEquals(error.task, 'tox')