示例#1
0
 def test_final_status_many(self, status1, status2):
     """
     Final status of a list is the latest.
     """
     target = status1
     if status2['updated_at'] > status1['updated_at']:
         target = status2
     self.assertEqual(target, merge_pr.final_status([status2, status1]))
示例#2
0
 def test_final_status_many(self, status1, status2):
     """
     Final status of a list is the latest.
     """
     target = status1
     if status2['updated_at'] > status1['updated_at']:
         target = status2
     self.assertEqual(target, merge_pr.final_status([status2, status1]))
示例#3
0
 def test_final_status_one(self, status):
     """
     Final status of one status is itself.
     """
     self.assertEqual(status, merge_pr.final_status([status]))
示例#4
0
 def test_final_status_one(self, status):
     """
     Final status of one status is itself.
     """
     self.assertEqual(status, merge_pr.final_status([status]))