aboutsummaryrefslogtreecommitdiff
path: root/bestflags/generation_test.py
blob: d97f51be6e6a584efff177557bfbf0f64445015b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
"""Generation unittest."""

__author__ = 'yuhenglong@google.com (Yuheng Long)'

import unittest

import generation


class GenerationTest(unittest.TestCase):
  """This class test the Generation class.

  A generation class should not produce a task that has been generated before.
  The task returned as the best task should really be the best.

  Given two generations, if the second one has improved upon the first one,
  the result method should return true and false otherwise.
  """

  def setUp(self):
    pass

  def testNext(self):
    """"Test the next method.

    Call the next method n times and all the tasks in each generation should be
    unique.
    """
    pass

  def testImprove(self):
    """"Test the improve method.

    If the successor generation has improvement upon the parent generation, the
    result from the improve method should indicate so.
    """

    pass

if __name__ == '__main__':
  unittest.main()