From 4f9a552c16fca8741f31929c99b94dd83b2a7c02 Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Wed, 3 Dec 2014 13:16:23 -0600 Subject: [PATCH] removed fudge and unneeded asserts Signed-off-by: Andrew Schoen --- teuthology/orchestra/test/test_cluster.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/teuthology/orchestra/test/test_cluster.py b/teuthology/orchestra/test/test_cluster.py index dcc5c697a2..8f1a23f69d 100644 --- a/teuthology/orchestra/test/test_cluster.py +++ b/teuthology/orchestra/test/test_cluster.py @@ -208,11 +208,9 @@ class TestCluster(object): c_foo = c.exclude('foo', lambda role: role.startswith('b')) assert c_foo.remotes == {r2: ['bar'], r3: ['foo']} - @fudge.with_fakes @patch("teuthology.misc.write_file") @patch("teuthology.misc.sudo_write_file") def test_write_file(self, m_sudo_write_file, m_write_file): - fudge.clear_expectations() r1 = remote.Remote('r1', ssh=fudge.Fake('SSH')) c = cluster.Cluster( remotes=[ @@ -220,12 +218,10 @@ class TestCluster(object): ], ) c.write_file("filename", "content", sudo=True) - assert m_sudo_write_file.called m_sudo_write_file.assert_called_with(r1, "filename", "content", owner=None, perms=None) with pytest.raises(ValueError): c.write_file("filename", "content", sudo=False, perms="perms") c.write_file("filename", "content") - assert m_write_file.called m_write_file.assert_called_with(r1, "filename", "content") -- 2.39.5