Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/d/h/DHTBot-HEAD/dhtbot/test/test_krpc_types.py   DHTBot(Download)
from twisted.trial import unittest
 
from dhtbot.krpc_types import _KRPC, Query, Response, Error
 
class KRPCTestCase(unittest.TestCase):
    def test_build_repr_empty(self):
        k = _KRPC()
    def test_build_repr_setTransactionID(self):
        k = _KRPC()
        k._transaction_id = 109825
        self.assertEquals("_transaction_id=109825",
                            k._build_repr(["_transaction_id"]))