Kill pointless tests

This commit is contained in:
Mike Place 2016-01-13 10:15:26 -07:00
parent 63c157d0a3
commit b9921128af

View file

@ -13,7 +13,8 @@ from salttesting.mock import (
NO_MOCK_REASON,
MagicMock,
mock_open,
patch)
patch,
call)
ensure_in_syspath('../../')
# Import third party libs
@ -81,13 +82,6 @@ class TestFileState(TestCase):
ret = filestate.managed('/tmp/foo', contents='hi', contents_pillar='foo:bar')
self.assertEqual(False, ret['result'])
def test_contents_pillar_adds_newline(self):
# make sure the newline
pillar_value = 'i am the pillar value'
expected = '{0}\n'.format(pillar_value)
self.run_contents_pillar(pillar_value, expected)
def test_contents_pillar_doesnt_add_more_newlines(self):
# make sure the newline
pillar_value = 'i am the pillar value\n'
@ -115,9 +109,6 @@ class TestFileState(TestCase):
ret = filestate.managed(path, contents_pillar=pillar_path)
# make sure the pillar_mock is called with the given path
pillar_mock.assert_called_once_with(pillar_path)
# make sure no errors are returned
self.assertEqual(None, ret)