OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2013 The LUCI Authors. All rights reserved. | 2 # Copyright 2013 The LUCI Authors. All rights reserved. |
3 # Use of this source code is governed under the Apache License, Version 2.0 | 3 # Use of this source code is governed under the Apache License, Version 2.0 |
4 # that can be found in the LICENSE file. | 4 # that can be found in the LICENSE file. |
5 | 5 |
6 import os | |
7 import shutil | |
8 import sys | |
9 import tempfile | |
10 import unittest | 6 import unittest |
11 | 7 |
12 import test_env | 8 import test_env |
13 | 9 |
14 from recipe_engine import step_runner | 10 from recipe_engine import step_runner |
15 | 11 |
16 | 12 |
17 class TestLinebuf(unittest.TestCase): | 13 class TestLinebuf(unittest.TestCase): |
18 def test_add_partial(self): | 14 def test_add_partial(self): |
19 lb = step_runner._streamingLinebuf() | 15 lb = step_runner._streamingLinebuf() |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 self.assertEqual(["nerdsdoop"], lb.get_buffered()) | 48 self.assertEqual(["nerdsdoop"], lb.get_buffered()) |
53 | 49 |
54 self.assertEqual([], lb.get_buffered()) | 50 self.assertEqual([], lb.get_buffered()) |
55 | 51 |
56 self.assertEqual([], lb.buffedlines) | 52 self.assertEqual([], lb.buffedlines) |
57 self.assertEqual("", lb.extra.getvalue()) | 53 self.assertEqual("", lb.extra.getvalue()) |
58 | 54 |
59 | 55 |
60 if __name__ == '__main__': | 56 if __name__ == '__main__': |
61 unittest.main() | 57 unittest.main() |
OLD | NEW |