Exemple #1
0
 def test_execute(self):
     traffic_generator = mock.Mock(autospec=TrafficProfile)
     traffic_generator.my_ports = [0, 1]
     traffic_generator.vnfd = self.VNFD['vnfd:vnfd-catalog']['vnfd'][0]
     traffic_generator.client = \
         mock.Mock(return_value=True)
     fixed_profile = FixedProfile(self.TRAFFIC_PROFILE)
     fixed_profile.params = self.TRAFFIC_PROFILE
     fixed_profile.first_run = True
     self.assertIsNone(fixed_profile.execute(traffic_generator))
Exemple #2
0
 def test___init__(self):
     fixed_profile = FixedProfile(self.TRAFFIC_PROFILE)
     self.assertIsNotNone(fixed_profile)
Exemple #3
0
 def test___init__(self):
     fixed_profile = \
         FixedProfile(TrafficProfile)
     self.assertIsNotNone(fixed_profile)