MCPcopy Create free account

hub / github.com/twisted/twisted / functions

Functions25,749 in github.com/twisted/twisted

↓ 3,562 callersMethodassertEqual
Fail the test if C{first} and C{second} are not equal. @param msg: A string describing the failure that's included in the
src/twisted/trial/_synctest.py:426
↓ 1,155 callersMethodassertEqual
(self, a: object, b: object)
src/twisted/test/test_randbytes.py:16
↓ 1,083 callersMethodassertTrue
Fail the test if C{condition} evaluates to False. @param condition: any object that defines __nonzero__
src/twisted/trial/_synctest.py:382
↓ 926 callersMethodaddCallback
( self, callback: Callable[Concatenate[_SelfResultT, _P], Failure], *args: _P.args,
src/twisted/internet/defer.py:551
↓ 865 callersMethodassertRaises
Fail the test unless calling the function C{f} with the given C{args} and C{kwargs} raises C{exception}. The failure will report
src/twisted/trial/_synctest.py:395
↓ 650 callersMethodassertFalse
Fail the test if C{condition} evaluates to True. @param condition: any object that defines __nonzero__
src/twisted/trial/_synctest.py:369
↓ 649 callersMethodappend
(self, line)
src/twisted/python/util.py:481
↓ 544 callersMethodjoin
Attempt to join the given group. @type group: L{IGroup} @rtype: L{twisted.internet.defer.Deferred}
src/twisted/words/iwords.py:176
↓ 415 callersMethodassertEqual
(self, a: object, b: object)
src/twisted/positioning/test/test_nmea.py:556
↓ 360 callersMethodaddErrback
( self, errback: Callable[Concatenate[Failure, _P], Deferred[_NextResultT]], *args: _P
src/twisted/internet/defer.py:626
↓ 317 callersMethodmktemp
Return a temporary path, encoded as bytes.
src/twisted/test/test_paths.py:48
↓ 313 callersMethodaddCallback
(self, tag)
src/twisted/test/test_internet.py:929
↓ 313 callersMethodassertIn
Fail the test if C{containee} is not found in C{container}. @param containee: the value that should be in C{container} @para
src/twisted/trial/_synctest.py:489
↓ 303 callersMethodpop
@see: L{dict.pop} @since: Twisted 21.2.0
src/twisted/python/util.py:181
↓ 299 callersMethodassertIs
Fail the test if C{first} is not C{second}. This is an obect-identity-equality test, not an object equality (i.e. C{__eq__})
src/twisted/trial/_synctest.py:441
↓ 292 callersMethodassertIsInstance
Fail if C{instance} is not an instance of the given class or of one of the given classes. @param instance: the object to tes
src/twisted/trial/_synctest.py:637
↓ 283 callersMethodencode
Encode this Name into the appropriate byte format. @type strio: file @param strio: The byte representation of this Name will
src/twisted/names/dns.py:655
↓ 282 callersMethodaddCallback
Add callback. The arguments passed are used as callback specific arguments. @param onetime: If C{True}, this callback is ca
src/twisted/words/xish/utility.py:57
↓ 276 callersMethodsuccessResultOf
Return the current success result of C{deferred} or raise C{self.failureException}. @param deferred: A L{Deferred<twisted.in
src/twisted/trial/_synctest.py:678
↓ 268 callersMethodassertFailure
Fail if C{deferred} does not errback with one of C{expectedFailures}. Returns the original Deferred with callbacks added. You will ne
src/twisted/trial/_asynctest.py:73
↓ 257 callersMethodaddCleanup
Extend the base cleanup feature with support for cleanup functions which return Deferreds. If the function C{f} returns a De
src/twisted/trial/_asynctest.py:320
↓ 249 callersMethodgetvalue
(self)
src/twisted/test/test_pcp.py:43
↓ 242 callersMethodappend
(self, what)
src/twisted/test/test_application.py:329
↓ 237 callersMethodformat
(self, tag)
src/twisted/mail/imap4.py:548
↓ 235 callersMethodmsg
Log a new message. The message should be a native string, i.e. bytes on Python 2 and Unicode on Python 3. For compatibility
src/twisted/python/log.py:243
↓ 218 callersMethodvalue
(self, elem)
src/twisted/words/xish/xpath.py:27
↓ 197 callersFunctionopen
Open an existing shortcut for reading. @return: The shortcut object @rtype: Shortcut
src/twisted/python/shortcut.py:17
↓ 196 callersMethodaddCallbacks
Add a pair of callbacks (success and error) to this L{Deferred}. These will be executed when the 'master' callback is run.
src/twisted/internet/defer.py:471
↓ 194 callersMethodchild
Return a new ZipPath representing a path in C{self.archive} which is a child of this path. @note: Requesting the C{".."} (or
src/twisted/python/zippath.py:127
↓ 180 callersMethodadvance
Move time on this clock forward by the given amount and run whatever pending calls should be run. @param amount: The number
src/twisted/internet/task.py:812
↓ 171 callersMethodsucceed
(r: object)
src/twisted/test/test_defer.py:2788
↓ 151 callersMethodtrap
Trap this failure if its type is in a predetermined list. This allows you to trap a Failure in an error callback. It will be
src/twisted/python/failure.py:405
↓ 148 callersMethodfailureResultOf
Return the current failure result of C{deferred} or raise C{self.failureException}. @param deferred: A L{Deferred<twisted.in
src/twisted/trial/_synctest.py:731
↓ 147 callersMethoderrback
Run all error callbacks that have been added to this L{Deferred}. Each callback will have its result passed as the first arg
src/twisted/internet/defer.py:883
↓ 147 callersMethodpatch
Apply all of the patches that have been specified with L{addPatch}. Reverse this operation using L{restore}.
src/twisted/python/monkey.py:41
↓ 146 callersMethodfromString
Return a Key object corresponding to the string data. type is optionally the type of string, matching a _fromString_* method.
src/twisted/conch/ssh/keys.py:173
↓ 144 callersMethodbuildReactor
Create and return a reactor using C{self.reactorFactory}.
src/twisted/internet/test/reactormixins.py:260
↓ 144 callersMethodcallback
Run all success callbacks that have been added to this L{Deferred}. Each callback will have its result passed as the first argument
src/twisted/internet/defer.py:858
↓ 144 callersMethodget
(self, instance: object, methodName: str)
src/twisted/web/_element.py:74
↓ 143 callersMethodflushLoggedErrors
Remove stored errors received from the log. C{TestCase} stores each error logged during the run of the test and reports them
src/twisted/trial/_synctest.py:1106
↓ 141 callersMethodmakeConnection
(self, producer)
src/twisted/web/test/test_newclient.py:2785
↓ 139 callersMethodrun
(self, *args)
src/twisted/web/xmlrpc.py:81
↓ 130 callersMethoditems
@return: a L{list} of 2-tuples containing key/value pairs.
src/twisted/persisted/dirdbm.py:192
↓ 129 callersFunctionnetworkString
Convert a string to L{bytes} using ASCII encoding. This is useful for sending text-like bytes that are constructed using string interpol
src/twisted/python/compat.py:442
↓ 126 callersMethoderr
(name)
src/twisted/python/_shellcomp.py:413
↓ 121 callersMethodNS
(self, arg)
src/twisted/conch/test/test_transport.py:66
↓ 121 callersMethodreplace
Replace the given C{key}. It must already exist in the server. @param key: the key to replace. @type key: L{bytes}
src/twisted/protocols/memcache.py:405
↓ 121 callersMethodsetContent
Replace the file at this path with a new file that contains the given bytes, trying to avoid data-loss in the meanwhile. On
src/twisted/python/filepath.py:1546
↓ 120 callersMethodappend
(f)
src/twisted/conch/test/test_filetransfer.py:418
↓ 119 callersMethodlistenTCP
Fake L{IReactorTCP.listenTCP}, that logs the call and returns an L{IListeningPort}.
src/twisted/internet/testing.py:723
↓ 118 callersMethodcallback
Call deferred with data and rest of line
src/twisted/mail/imap4.py:475
↓ 116 callersMethodwrite
Write some data as a result of an HTTP request. The first time this is called, it writes out response data. @type data: C{b
src/twisted/web/http.py:1248
↓ 114 callersMethodassertRaises
( self, exception: type[Exception], f: Callable[[], object] )
src/twisted/positioning/test/test_nmea.py:559
↓ 114 callersMethodflushWarnings
Remove stored warnings from the list of captured warnings and return them. @param offendingFunctions: If L{None}, all warnin
src/twisted/trial/_synctest.py:1120
↓ 108 callersMethodaddBoth
( self, callback: Callable[Concatenate[_SelfResultT | Failure, _P], Failure], *args: _
src/twisted/internet/defer.py:668
↓ 105 callersMethodextend
Extend our messages with another message or set of messages. @param other: The messages to include. @type other: L{MessageSe
src/twisted/mail/imap4.py:285
↓ 104 callersMethodencode
Write to the request, automatically compressing data on the fly.
src/twisted/web/server.py:657
↓ 100 callersMethodjoin
Shut down all of the workers in the pool. The pool is unusable after this method is called.
src/twisted/trial/_dist/disttrial.py:127
↓ 95 callersMethodmakedirs
Create all directories not yet existing in C{path} segments, using L{os.makedirs}. @param ignoreExistingDirectory: Don't rai
src/twisted/python/filepath.py:1476
↓ 94 callersFunctionnativeString
Convert C{bytes} or C{str} to C{str} type, using ASCII encoding if conversion is necessary. @raise UnicodeError: The input string is not
src/twisted/python/compat.py:329
↓ 93 callersMethodassertNotIn
Fail the test if C{containee} is found in C{container}. @param containee: the value that should not be in C{container} @para
src/twisted/trial/_synctest.py:505
↓ 93 callersMethodpatch
Monkey patch an object for the duration of the test. The monkey patch will be reverted at the end of the test using the L{ad
src/twisted/trial/_synctest.py:1086
↓ 92 callersMethodclear
Clear any existing children from this tag.
src/twisted/web/_stan.py:279
↓ 91 callersMethodexists
(self)
src/twisted/python/zippath.py:152
↓ 91 callersFunctioniterbytes
Return an iterable wrapper for a C{bytes} object that provides the behavior of iterating over C{bytes} on Python 2. In particular, the r
src/twisted/python/compat.py:396
↓ 88 callersMethodconnectTCP
Fake L{IReactorTCP.connectTCP}, that logs the call and returns an L{IConnector}.
src/twisted/internet/testing.py:735
↓ 87 callersMethodassertIsInstance
( self, instance: object, classOrTuple: type, message: str )
src/twisted/test/test_log.py:327
↓ 87 callersMethodcallback
(self, tag)
src/twisted/test/test_internet.py:925
↓ 87 callersMethodseek
(self, offset, whence)
src/twisted/web/test/test_agent.py:186
↓ 85 callersMethodcallRemote
Call remote XML-RPC C{method} with given arguments. @return: a L{defer.Deferred} that will fire with the method response,
src/twisted/web/xmlrpc.py:573
↓ 85 callersMethoddataReceived
(self, data)
src/twisted/web/sux.py:150
↓ 84 callersFunctionNS
net string
src/twisted/conch/ssh/common.py:22
↓ 84 callersMethoddecode
Decode a byte string into this Name. When invoked from L{Message.decode}, a shared compression-pointer counter is picked up
src/twisted/names/dns.py:688
↓ 82 callersMethodgetRawHeaders
(self, name: AnyStr)
src/twisted/web/http_headers.py:160
↓ 82 callersMethodwarn
Emit a log event at log level L{LogLevel.warn}. @param format: a message format using new-style (PEP 3101) formatting. T
src/twisted/logger/_logger.py:313
↓ 81 callersMethodappend
Add the given message to the given mailbox. This command is allowed in the Authenticated and Selected states. @type mailbox
src/twisted/mail/imap4.py:3457
↓ 79 callersMethodcallLater
See L{twisted.internet.interfaces.IReactorTime.callLater}.
src/twisted/internet/task.py:787
↓ 77 callersMethodkeys
@return: a L{list} of filenames (keys).
src/twisted/persisted/dirdbm.py:176
↓ 75 callersMethodvalue
Retrieve all data which has been buffered by this transport. This is not a transport method. It is intended for tests. Do not use
src/twisted/internet/testing.py:248
↓ 74 callersMethodremove
Remove the given user from this group. @type user: L{IUser} @type reason: C{unicode}
src/twisted/words/iwords.py:35
↓ 74 callersMethodrunReactor
Run the reactor for at most the given amount of time. @param reactor: The reactor to run. @type timeout: C{int} or C{float}
src/twisted/internet/test/reactormixins.py:325
↓ 72 callersMethodrun
(self, result)
src/twisted/trial/test/test_runner.py:679
↓ 72 callersFunctionstrip
(f)
src/twisted/mail/test/test_imap.py:58
↓ 71 callersMethodparseOptions
The guts of the command-line parser.
src/twisted/python/usage.py:213
↓ 70 callersMethodassertNotEqual
Fail the test if C{first} == C{second}. @param msg: if msg is None, then the failure message will be '%r == %r' % (first, se
src/twisted/trial/_synctest.py:473
↓ 70 callersMethodupdate
Add all the key/value pairs in L{dict} to this dirdbm. Any conflicting keys will be overwritten with the values from L{dict}.
src/twisted/persisted/dirdbm.py:256
↓ 70 callersMethodwrite
(self, bytes: bytes)
src/twisted/test/test_log.py:297
↓ 69 callersMethodvalue
return this counter's value >>> c = Counter(555) >>> c.value() == 555 True
src/twisted/trial/test/mockdoctest.py:89
↓ 67 callersMethodassertNoResult
Assert that C{deferred} does not have a result at this point. If the assertion succeeds, then the result of C{deferred} is left
src/twisted/trial/_synctest.py:789
↓ 67 callersMethodgetHost
(self)
src/twisted/test/iosim.py:174
↓ 66 callersMethodsetRawHeaders
Sets the raw representation of the given header. @param name: The name of the HTTP header to set the values for. @param val
src/twisted/web/http_headers.py:120
↓ 66 callersMethodstop
(self, b)
docs/core/examples/pbgtk2.py:125
↓ 65 callersMethoddataReceived
(self, data)
src/twisted/web/test/test_agent.py:2370
↓ 65 callersMethodmessageFactory
Create a L{dns.Message}. The L{dns.Message} constructor doesn't accept C{queries}, C{answers}, C{authority}, C{additional} a
src/twisted/names/test/test_dns.py:1097
↓ 65 callersMethodparseString
(self, s)
src/twisted/mail/imap4.py:5816
↓ 64 callersFunctionf
(x: int, a: int)
benchmarks/test_deferred.py:38
↓ 64 callersMethodloopback
(self)
src/twisted/mail/test/test_imap.py:7173
↓ 63 callersMethodaddRawHeader
Add a new raw value for the given header. @param name: The name of the header for which to set the value. @param value: The
src/twisted/web/http_headers.py:145
↓ 62 callersMethodencode
(self, s, errors="strict")
src/twisted/mail/imap4.py:6205
↓ 62 callersMethodflush
Pump until there is no more input or output. Returns whether any data was moved.
src/twisted/test/iosim.py:301
next →1–100 of 25,749, ranked by callers