Skip to content
This repository has been archived by the owner on Nov 15, 2021. It is now read-only.

Commit

Permalink
test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
localhuman committed Apr 4, 2018
1 parent 4431135 commit 1c96dab
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 80 deletions.
5 changes: 2 additions & 3 deletions neo/Core/TX/Transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from neo.Blockchain import *
from neo.Core.TX.TransactionAttribute import *
from neocore.Fixed8 import Fixed8
from neo.Network.Inventory import Inventory

from neo.Network.InventoryType import InventoryType
from neo.Network.Mixins import InventoryMixin
from neocore.Cryptography.Crypto import *
Expand All @@ -21,7 +21,6 @@
from neo.Core.Witness import Witness
from neocore.UInt256 import UInt256
from neo.Core.AssetType import AssetType
import inspect


class TransactionResult(EquatableMixin):
Expand Down Expand Up @@ -216,7 +215,7 @@ def ToJson(self):
}


class Transaction(Inventory, InventoryMixin):
class Transaction(InventoryMixin):
Type = None

Version = 0
Expand Down
3 changes: 1 addition & 2 deletions neo/Core/TX/TransactionAttribute.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from neo.Core.TX.TransactionAttribute import TransactionAttribute
"""
from logzero import logger
from neo.Network.Inventory import Inventory
from neocore.IO.Mixins import SerializableMixin
from neocore.UIntBase import UIntBase

Expand Down Expand Up @@ -59,7 +58,7 @@ class TransactionAttributeUsage(object):
Remark15 = int.from_bytes(b'\xff', 'little')


class TransactionAttribute(Inventory, SerializableMixin):
class TransactionAttribute(SerializableMixin):
MAX_ATTR_DATA_SIZE = 65535

"""docstring for TransactionAttribute"""
Expand Down
24 changes: 0 additions & 24 deletions neo/Network/IPEndpoint.py

This file was deleted.

49 changes: 0 additions & 49 deletions neo/Network/Inventory.py

This file was deleted.

4 changes: 2 additions & 2 deletions neo/Network/test_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self, host, port):
class NodeTestCase(TestCase):

@patch.object(NeoNode, 'MessageReceived')
def test_initialize(self, mock):
def test_handle_message(self, mock):

node = NeoNode()
node.endpoint = Endpoint('hello.com', 1234)
Expand Down Expand Up @@ -65,7 +65,7 @@ def test_initialize(self, mock):
mock.assert_called_once()

@patch.object(NeoNode, 'SendVersion')
def test_initialize(self, mock):
def test_data_received(self, mock):

node = NeoNode()
node.endpoint = Endpoint('hello.com', 1234)
Expand Down

0 comments on commit 1c96dab

Please sign in to comment.