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__)
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')