Remove Python 2.6 incompatible section of test

A portion of this test seems to be only testing the differences
between the way Python is using the help string between 2.6 and
2.7. This section doesn't really seem to be testing any salt code.
This commit is contained in:
rallytime 2015-04-21 12:25:31 -06:00
parent 3ce1cef592
commit 1be53aaf7d

View File

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
'''
:codeauthor: :email:`Jayesh Kariya <jayeshk@saltstack.com>`
:codeauthor: :email:`Jayesh Kariya <jayeshk@saltstack.com>`
'''
# Import Python Libs
@ -99,12 +99,6 @@ class SysmodTestCase(TestCase):
'''
self.assertDictEqual(sysmod.doc(), {})
ret = ("str(object='') -> string\n\nReturn a nice string"
" representation of the object.\nIf the argument is a string,"
" the return value is the same object.")
with patch.dict(sysmod.__salt__, {'sys.doc': ''}):
self.assertDictEqual(sysmod.doc('sys.doc'), {'sys.doc': ret})
# 'state_doc' function tests: 1
def test_state_doc(self):