generation_test.py revision 49358b75c25a44760e884245440dc96e55812d04
1"""Generation unittest. 2 3Part of the Chrome build flags optimization. 4""" 5 6__author__ = 'yuhenglong@google.com (Yuheng Long)' 7 8import unittest 9 10import generation 11 12 13class GenerationTest(unittest.TestCase): 14 """This class test the Generation class. 15 16 A generation class should not produce a task that has been generated before. 17 The task returned as the best task should really be the best. 18 19 Given two generations, if the second one has improved upon the first one, 20 the result method should return true and false otherwise. 21 """ 22 23 def setUp(self): 24 pass 25 26 def testNext(self): 27 """"Test the next method. 28 29 Call the next method n times and all the tasks in each generation should be 30 unique. 31 """ 32 pass 33 34 def testImprove(self): 35 """"Test the improve method. 36 37 If the successor generation has improvement upon the parent generation, the 38 result from the improve method should indicate so. 39 """ 40 41 pass 42 43if __name__ == '__main__': 44 unittest.main() 45