Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix "id" retrieval from MQ producer in GenericTrafficGen
[yardstick.git]
/
yardstick
/
tests
/
unit
/
network_services
/
vnf_generic
/
vnf
/
test_base.py
diff --git
a/yardstick/tests/unit/network_services/vnf_generic/vnf/test_base.py
b/yardstick/tests/unit/network_services/vnf_generic/vnf/test_base.py
index
43e5ac8
..
ce8205a
100644
(file)
--- a/
yardstick/tests/unit/network_services/vnf_generic/vnf/test_base.py
+++ b/
yardstick/tests/unit/network_services/vnf_generic/vnf/test_base.py
@@
-264,7
+264,7
@@
class GenericTrafficGenTestCase(unittest.TestCase):
}
tg = _DummyGenericTrafficGen('name', vnfd)
tg._mq_producer = mock.Mock()
}
tg = _DummyGenericTrafficGen('name', vnfd)
tg._mq_producer = mock.Mock()
- tg._mq_producer.
get_id.return_value
= 'fake_id'
+ tg._mq_producer.
id
= 'fake_id'
self.assertEqual('fake_id', tg.get_mq_producer_id())
self.assertEqual('fake_id', tg.get_mq_producer_id())