Skip to content

Commit

Permalink
fix the unittests for encoding / decoding OFPAT_ENQUEUE / ActionEnque…
Browse files Browse the repository at this point in the history
…ue actions
  • Loading branch information
rlenglet committed May 17, 2011
1 parent cf15982 commit 0222f63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ChangeLog
@@ -1,7 +1,7 @@
2011-05-17 Romain Lenglet <romain.lenglet@berabera.info>

* src/openfaucet/ofaction.py, NEWS: Fix the format for
OFPAT_ENQUEUE / ActionEnqueue actions.
* src/openfaucet/ofaction.py, src/openfaucet/test_ofaction.py,
NEWS: Fix the format for OFPAT_ENQUEUE / ActionEnqueue actions.

2011-05-17 Romain Lenglet <romain.lenglet@berabera.info>

Expand Down
4 changes: 2 additions & 2 deletions src/openfaucet/test_ofaction.py
Expand Up @@ -180,11 +180,11 @@ def test_deserialize_action_set_tp_dst(self):
def test_serialize_action_enqueue(self):
a = ofaction.ActionEnqueue(port=0x1234, queue_id=0x13243546)
self.assertEqual(11, a.type)
self.assertEqual('\x12\x34\x00\x00\x13\x24\x35\x46',
self.assertEqual('\x12\x34\x00\x00\x00\x00\x00\x00\x13\x24\x35\x46',
a.serialize())

def test_deserialize_action_enqueue(self):
self.buf.append('\x12\x34\x00\x00\x13\x24\x35\x46')
self.buf.append('\x12\x34\x00\x00\x00\x00\x00\x00\x13\x24\x35\x46')
self.buf.set_message_boundaries(8)
self.assertTupleEqual((0x1234, 0x13243546,),
ofaction.ActionEnqueue.deserialize(self.buf))
Expand Down

0 comments on commit 0222f63

Please sign in to comment.