1 ##############################################################################
2 # Copyright (c) 2016 Huawei Technologies Co.,Ltd and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
12 from yardstick.cmd.commands.env import EnvCommand
15 class EnvCommandTestCase(unittest.TestCase):
17 @mock.patch('yardstick.cmd.commands.env.HttpClient')
18 def test_do_influxdb(self, mock_http_client):
21 self.assertTrue(mock_http_client().post.called)
28 if __name__ == '__main__':