diff options
author | Michael Fenn <fennm@deshawresearch.com> | 2013-08-05 21:18:07 -0400 |
---|---|---|
committer | Michael Fenn <fennm@deshawresearch.com> | 2013-08-05 21:18:07 -0400 |
commit | 27cdcd93023d5979d4c7724ca8c141331bae08e2 (patch) | |
tree | e4c010c481ab5bc9cf050402c29767e2d06bdcbc /testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestMetadata.py | |
parent | a96a3301d5a2b0630795709c00e80f938fed10a4 (diff) | |
download | bcfg2-27cdcd93023d5979d4c7724ca8c141331bae08e2.tar.gz bcfg2-27cdcd93023d5979d4c7724ca8c141331bae08e2.tar.bz2 bcfg2-27cdcd93023d5979d4c7724ca8c141331bae08e2.zip |
Adjust test
Don't need to check write() because update_client() calls it
Diffstat (limited to 'testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestMetadata.py')
-rw-r--r-- | testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestMetadata.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestMetadata.py b/testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestMetadata.py index e2da6ec5d..1273f0d30 100644 --- a/testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestMetadata.py +++ b/testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestMetadata.py @@ -885,10 +885,10 @@ class TestMetadata(_TestMetadata, TestClientRunHooks, TestDatabaseBacked): metadata = self.load_clients_data(metadata=self.load_groups_data()) if not metadata._use_db: metadata.clients_xml.write = Mock() + metadata.set_profile("client1", "group2", None) mock_update_client.assert_called_with("client1", dict(profile="group2")) - metadata.clients_xml.write.assert_any_call() self.assertEqual(metadata.clientgroups["client1"], ["group2"]) metadata.clients_xml.write.reset_mock() |