From 8a3448ce526f7b33c53d08d91bc13bafb4caf175 Mon Sep 17 00:00:00 2001 From: Amy Sutedja Date: Fri, 3 Apr 2020 12:13:48 -0700 Subject: [PATCH] Remove test code --- tests/searchcommands/test_decorators.py | 30 ----------------------- tests/searchcommands/test_internals_v1.py | 3 --- 2 files changed, 33 deletions(-) diff --git a/tests/searchcommands/test_decorators.py b/tests/searchcommands/test_decorators.py index 3c82b7906..84900d416 100755 --- a/tests/searchcommands/test_decorators.py +++ b/tests/searchcommands/test_decorators.py @@ -400,36 +400,6 @@ def test_option(self): else: self.assertFalse('Expected ValueError for {}={}, not a pass.'.format(option.name, illegal_value)) - # expected = ( - # "Option.View([" - # "(u'foo', u'f')," - # "('boolean', u'f')," - # "('code', u'foo == \"bar\"')," - # "('duration', u'24:59:59')," - # "('fieldname', u'some.field_name')," - # "('file', u" + six.text_type(repr(__file__)) + ")," - # "('integer', u'100')," - # "('logging_configuration', " + repr(environment.logging_configuration) + ")," - # "('logging_level', u'WARNING')," - # "('map', 'foo')," - # "('match', u'123-45-6789')," - # "('optionname', u'some_option_name')," - # "('record', u'f')," - # "('regularexpression', u'\\\\s+')," - # "('required_boolean', u'f')," - # "('required_code', u'foo == \"bar\"')," - # "('required_duration', u'24:59:59')," - # "('required_fieldname', u'some.field_name')," - # "('required_file', u" + six.text_type(repr(__file__)) + ")," - # "('required_integer', u'100')," - # "('required_map', 'foo')," - # "('required_match', u'123-45-6789')," - # "('required_optionname', u'some_option_name')," - # "('required_regularexpression', u'\\\\s+')," - # "('required_set', u'bar')," - # "('set', u'bar')," - # "('show_configuration', u'f')])") - expected = { u'foo': False, 'boolean': False, diff --git a/tests/searchcommands/test_internals_v1.py b/tests/searchcommands/test_internals_v1.py index 4fd2c353d..ce284cc0a 100755 --- a/tests/searchcommands/test_internals_v1.py +++ b/tests/searchcommands/test_internals_v1.py @@ -232,9 +232,6 @@ def test_input_header(self): input_header = InputHeader() - print("String: %s" % type('\r\n')) - print("Encode: %s" % type('\r\n'.encode())) - with closing(StringIO('\r\n')) as input_file: input_header.read(input_file)