# Path: duct/protocol/sflow/protocol/protocol.py
# class Sflow(object):
# class FlowSample(object):
# class CounterSample(object):
#     def __init__(self, payload, host):
#     def sflow_v5(self, u):
#     def decode_samples(self, u):
#     def __init__(self, u):
#     def __init__(self, u):


from twisted.trial import unittest
from twisted.internet import defer
from duct.protocol.sflow import protocol
from duct.tests import globs




class Test(unittest.TestCase):
    def test_decode(self):
        proto = protocol.Sflow(globs.SFLOW_PACKET, '172.30.0.5')

        self.assertTrue(proto.version == 5)


# Path: duct/protocol/sflow/protocol/protocol.py
# class Sflow(object):
# class FlowSample(object):
# class CounterSample(object):
#     def __init__(self, payload, host):
#     def sflow_v5(self, u):
#     def decode_samples(self, u):
#     def __init__(self, u):
#     def __init__(self, u):


# Path: duct/tests/test_sflow.py
from twisted.trial import unittest
from twisted.internet import defer
from duct.protocol.sflow import protocol
from duct.tests import globs





class Test(unittest.TestCase):
    def test_decode(self):
        proto = protocol.Sflow(globs.SFLOW_PACKET, '172.30.0.5')

        self.assertTrue(proto.version == 5)


        self.assertTrue(len(proto.samples) == 5)