diff options
author | Yuheng Long <yuhenglong@google.com> | 2013-06-03 18:46:00 -0700 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-06-10 20:21:38 -0700 |
commit | f20cffac082e3d920818f230ffc80ae6976267c0 (patch) | |
tree | d1375d3dd7b0a32be97bd179f8fab7ab3e096473 /bestflags/generation_test.py | |
parent | 8cdaddf7ec91520a0bfbdf9da73056f255f67824 (diff) | |
download | toolchain-utils-f20cffac082e3d920818f230ffc80ae6976267c0.tar.gz |
Added the skeleton for the flagging framework.
BUG=None
TEST=None
Change-Id: I72c37ac70ed2adca588ad9866a6bcc26775aed8b
Reviewed-on: https://gerrit-int.chromium.org/39096
Reviewed-by: Luis Lozano <llozano@chromium.org>
Tested-by: Yuheng Long <yuhenglong@google.com>
Commit-Queue: Yuheng Long <yuhenglong@google.com>
Diffstat (limited to 'bestflags/generation_test.py')
-rw-r--r-- | bestflags/generation_test.py | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/bestflags/generation_test.py b/bestflags/generation_test.py new file mode 100644 index 00000000..d97f51be --- /dev/null +++ b/bestflags/generation_test.py @@ -0,0 +1,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() |