Add support for Python 3
[yardstick.git] / tests / unit / benchmark / scenarios / networking / test_vtc_throughput_noisy_test.py
1 #!/usr/bin/env python
2
3 ##############################################################################
4 # Copyright (c) 2015 Ericsson AB and others.
5 #
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Apache License, Version 2.0
8 # which accompanies this distribution, and is available at
9 # http://www.apache.org/licenses/LICENSE-2.0
10 ##############################################################################
11
12 # Unittest for yardstick.benchmark.scenarios.networking.iperf3.Iperf
13
14 from __future__ import absolute_import
15 import mock
16 import unittest
17
18 from yardstick.benchmark.scenarios.networking import vtc_throughput_noisy
19
20
21 class VtcThroughputNoisyTestCase(unittest.TestCase):
22
23     def setUp(self):
24         scenario = dict()
25         scenario['options'] = dict()
26         scenario['options']['default_net_name'] = ''
27         scenario['options']['default_subnet_name'] = ''
28         scenario['options']['vlan_net_1_name'] = ''
29         scenario['options']['vlan_subnet_1_name'] = ''
30         scenario['options']['vlan_net_2_name'] = ''
31         scenario['options']['vlan_subnet_2_name'] = ''
32         scenario['options']['vnic_type'] = ''
33         scenario['options']['vtc_flavor'] = ''
34         scenario['options']['packet_size'] = ''
35         scenario['options']['vlan_sender'] = ''
36         scenario['options']['vlan_receiver'] = ''
37         scenario['options']['num_of_neighbours'] = '1'
38         scenario['options']['amount_of_ram'] = '1G'
39         scenario['options']['number_of_cores'] = '1'
40
41         self.vt = vtc_throughput_noisy.VtcThroughputNoisy(scenario, '')
42
43     def test_run_for_success(self):
44         result = {}
45         self.vt.run(result)
46
47
48 def main():
49     unittest.main()
50
51 if __name__ == '__main__':
52     main()