OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 | 5 |
6 class SharedState(object): | 6 class SharedState(object): |
7 """A class that manages the test state across multiple user stories. | 7 """A class that manages the test state across multiple user stories. |
8 It's styled on unittest.TestCase for handling test setup & teardown logic. | 8 It's styled on unittest.TestCase for handling test setup & teardown logic. |
9 | 9 |
10 """ | 10 """ |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 """ | 48 """ |
49 raise NotImplementedError() | 49 raise NotImplementedError() |
50 | 50 |
51 def RunUserStory(self, results): | 51 def RunUserStory(self, results): |
52 """ Override to do any action before running each one of all user stories | 52 """ Override to do any action before running each one of all user stories |
53 that share this same state. | 53 that share this same state. |
54 This method is styled on unittest.TestCase.run. | 54 This method is styled on unittest.TestCase.run. |
55 """ | 55 """ |
56 raise NotImplementedError() | 56 raise NotImplementedError() |
57 | 57 |
58 def TearDownState(self, results): | 58 def TearDownState(self): |
59 """ Override to do any action after running multiple user stories that | 59 """ Override to do any action after running multiple user stories that |
60 share this same state. | 60 share this same state. |
61 This method is styled on unittest.TestCase.tearDownClass. | 61 This method is styled on unittest.TestCase.tearDownClass. |
62 """ | 62 """ |
63 raise NotImplementedError() | 63 raise NotImplementedError() |
OLD | NEW |