ppf: Update direction strings to "send" and "receive".
authorRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Mon, 22 Aug 2011 06:20:04 +0000 (09:20 +0300)
committerRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Mon, 22 Aug 2011 06:20:04 +0000 (09:20 +0300)
ppf/new/storage.py
ppf/new/tests/test_storage.py

index 3db0af8..854a243 100644 (file)
@@ -113,8 +113,8 @@ bittorrent_clients = {
 }
 
 transfer_directions = {
-        'to': 1,
-        'from': 2
+        'receive': 1,
+        'send': 2
 }
 
 class Swarm(object):
index a326fe0..e4ac937 100644 (file)
@@ -274,7 +274,7 @@ class TreeTextFileAccessTest(unittest.TestCase):
 
         # Add peer status message.
         msg = storage.VerboseMessage(swarm_id=1, client_session_id=1,
-            transfer_direction="to", peer_ip="141.85.224.202",
+            transfer_direction="send", peer_ip="141.85.224.202",
             peer_port="12345", message_type="CHOKE")
         a.add_verbose_message(msg)