diff options
| author | termie <github@anarkystic.com> | 2011-05-25 15:42:24 -0700 |
|---|---|---|
| committer | termie <github@anarkystic.com> | 2011-05-25 15:42:24 -0700 |
| commit | d46c9fffe4fab8f55483c73d3e6ef12116de9bc5 (patch) | |
| tree | 37faaa373bd7e0744240cfdd081820d2284e1d35 | |
| parent | fdd27860724cd57db6df059a97e98289f88ce6ac (diff) | |
make the test more expicit
| -rw-r--r-- | nova/tests/test_rpc.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/nova/tests/test_rpc.py b/nova/tests/test_rpc.py index 92ddfcffc..acab3e758 100644 --- a/nova/tests/test_rpc.py +++ b/nova/tests/test_rpc.py @@ -56,9 +56,10 @@ class RpcTestCase(test.TestCase): 'test', {"method": "echo_three_times", "args": {"value": value}}) - + i = 0 for x in result: - self.assertEqual(value, x) + self.assertEqual(value + i, x) + i += 1 def test_context_passed(self): """Makes sure a context is passed through rpc call""" @@ -140,8 +141,8 @@ class TestReceiver(object): @staticmethod def echo_three_times(context, value): context.reply(value) - context.reply(value) - context.reply(value) + context.reply(value + 1) + context.reply(value + 2) @staticmethod def fail(context, value): |
