commit 21cd260745a1b824c908e3eacac4083fe16750a6 Author: Damian Johnson atagar@torproject.org Date: Wed Jun 12 19:42:48 2013 -0700
Dropping mock from descriptor reader integ test
I was gonna migrate this call over but it looks to be unneeded. Test passes so guess we probably replaced the problematic descriptor content with a real descriptor. --- test/integ/descriptor/reader.py | 5 ----- 1 file changed, 5 deletions(-)
diff --git a/test/integ/descriptor/reader.py b/test/integ/descriptor/reader.py index f0fa7d2..99ce78d 100644 --- a/test/integ/descriptor/reader.py +++ b/test/integ/descriptor/reader.py @@ -11,7 +11,6 @@ import time import unittest
import stem.descriptor.reader -import test.mocking import test.runner
from stem.util import system @@ -87,8 +86,6 @@ class SkipListener:
class TestDescriptorReader(unittest.TestCase): def tearDown(self): - test.mocking.revert_mocking() - # cleans up 'processed file' listings that we made test_listing_path = _get_processed_files_path()
@@ -395,8 +392,6 @@ class TestDescriptorReader(unittest.TestCase): plaintext non-descriptor files. """
- test.mocking.mock_method(stem.descriptor.server_descriptor.RelayDescriptor, '_validate_content', test.mocking.no_op()) - skip_listener = SkipListener() reader = stem.descriptor.reader.DescriptorReader(DESCRIPTOR_TEST_DATA) reader.register_skip_listener(skip_listener.listener)