def test_Props(): """props""" # # valid values req = Request() req.RequestID = 1 assert req.RequestID == 1 req.RequestName = "test" assert req.RequestName == "test" req.JobID = 1 assert req.JobID == 1 req.CreationTime = "1970-01-01 00:00:00" assert req.CreationTime == datetime.datetime(1970, 1, 1, 0, 0, 0) req.CreationTime = datetime.datetime(1970, 1, 1, 0, 0, 0) assert req.CreationTime == datetime.datetime(1970, 1, 1, 0, 0, 0) req.SubmitTime = "1970-01-01 00:00:00" assert req.SubmitTime == datetime.datetime(1970, 1, 1, 0, 0, 0) req.SubmitTime = datetime.datetime(1970, 1, 1, 0, 0, 0) assert req.SubmitTime == datetime.datetime(1970, 1, 1, 0, 0, 0) req.LastUpdate = "1970-01-01 00:00:00" assert req.LastUpdate == datetime.datetime(1970, 1, 1, 0, 0, 0) req.LastUpdate = datetime.datetime(1970, 1, 1, 0, 0, 0) assert req.LastUpdate == datetime.datetime(1970, 1, 1, 0, 0, 0) req.Error = ""
def test02Props( self ): """ props """ # # valid values req = Request() req.RequestID = 1 self.assertEqual( req.RequestID, 1 ) req.RequestName = "test" self.assertEqual( req.RequestName, "test" ) req.JobID = 1 self.assertEqual( req.JobID, 1 ) req.CreationTime = "1970-01-01 00:00:00" self.assertEqual( req.CreationTime, datetime.datetime( 1970, 1, 1, 0, 0, 0 ) ) req.CreationTime = datetime.datetime( 1970, 1, 1, 0, 0, 0 ) self.assertEqual( req.CreationTime, datetime.datetime( 1970, 1, 1, 0, 0, 0 ) ) req.SubmitTime = "1970-01-01 00:00:00" self.assertEqual( req.SubmitTime, datetime.datetime( 1970, 1, 1, 0, 0, 0 ) ) req.SubmitTime = datetime.datetime( 1970, 1, 1, 0, 0, 0 ) self.assertEqual( req.SubmitTime, datetime.datetime( 1970, 1, 1, 0, 0, 0 ) ) req.LastUpdate = "1970-01-01 00:00:00" self.assertEqual( req.LastUpdate, datetime.datetime( 1970, 1, 1, 0, 0, 0 ) ) req.LastUpdate = datetime.datetime( 1970, 1, 1, 0, 0, 0 ) self.assertEqual( req.LastUpdate, datetime.datetime( 1970, 1, 1, 0, 0, 0 ) ) req.Error = ""
def test02Props(self): """ props """ # # valid values req = Request() req.RequestID = 1 self.assertEqual(req.RequestID, 1) req.RequestName = "test" self.assertEqual(req.RequestName, "test") req.JobID = 1 self.assertEqual(req.JobID, 1) req.JobID = "1" self.assertEqual(req.JobID, 1) req.CreationTime = "1970-01-01 00:00:00" self.assertEqual(req.CreationTime, datetime.datetime(1970, 1, 1, 0, 0, 0)) req.CreationTime = datetime.datetime(1970, 1, 1, 0, 0, 0) self.assertEqual(req.CreationTime, datetime.datetime(1970, 1, 1, 0, 0, 0)) req.SubmitTime = "1970-01-01 00:00:00" self.assertEqual(req.SubmitTime, datetime.datetime(1970, 1, 1, 0, 0, 0)) req.SubmitTime = datetime.datetime(1970, 1, 1, 0, 0, 0) self.assertEqual(req.SubmitTime, datetime.datetime(1970, 1, 1, 0, 0, 0)) req.LastUpdate = "1970-01-01 00:00:00" self.assertEqual(req.LastUpdate, datetime.datetime(1970, 1, 1, 0, 0, 0)) req.LastUpdate = datetime.datetime(1970, 1, 1, 0, 0, 0) self.assertEqual(req.LastUpdate, datetime.datetime(1970, 1, 1, 0, 0, 0)) req.Error = ""