Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions code-ch10/Chapter10.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
"source": [
"### Exercise 1\n",
"\n",
"Determine what this network message is:\n",
"Write the `parse` method for `NetworkEnvelope`.\n",
"\n",
"`f9beb4d976657261636b000000000000000000005df6e0e2`"
"#### Make [this test](/edit/code-ch10/network.py) pass: `network.py:NetworkEnvelopeTest:test_parse`"
]
},
{
Expand All @@ -40,10 +40,8 @@
"source": [
"# Exercise 1\n",
"\n",
"message_hex = 'f9beb4d976657261636b000000000000000000005df6e0e2'\n",
"\n",
"# convert to binary\n",
"# see what the bytes 4 through 16 aregi"
"reload(network)\n",
"run(network.NetworkEnvelopeTest(\"test_parse\"))"
]
},
{
Expand All @@ -52,9 +50,9 @@
"source": [
"### Exercise 2\n",
"\n",
"Write the `parse` method for `NetworkEnvelope`.\n",
"Determine what this network message is:\n",
"\n",
"#### Make [this test](/edit/code-ch10/network.py) pass: `network.py:NetworkEnvelopeTest:test_parse`"
"`f9beb4d976657261636b000000000000000000005df6e0e2`"
]
},
{
Expand All @@ -65,8 +63,10 @@
"source": [
"# Exercise 2\n",
"\n",
"reload(network)\n",
"run(network.NetworkEnvelopeTest(\"test_parse\"))"
"message_hex = 'f9beb4d976657261636b000000000000000000005df6e0e2'\n",
"\n",
"# convert to binary\n",
"# see what the bytes 4 through 16 aregi"
]
},
{
Expand Down