djangotestxmlrpc
Test Django XML-RPC views using the Django test client. Because you’re using the Django test client, you’re not actually sending HTTP requests and don’t need a server running.
This is a slightly modified version of code taken from this blog post from Forest Bond.
Example usage:
from djangotestxmlrpc import DjangoTestClientXMLRPCTransport
class TestXmlRpc(django.test.TestCase):
...
def test_list_package(self):
pypi = xmlrpclib.ServerProxy(
"http://localhost/pypi/",
transport=DjangoTestClientXMLRPCTransport(self.client))
pypi_hits = pypi.list_packages()
expected = ['foo']
self.assertEqual(pypi_hits, expected)
Supported Python versions
Python 2.5
Python 2.6
Python 2.7
PyPy 1.9
Python 3.1
Python 3.2
Python 3.3
or says tox:
~/dev/git-repos/djangotestxmlrpc$ tox ... py25: commands succeeded py26: commands succeeded py27: commands succeeded pypy: commands succeeded py31: commands succeeded py32: commands succeeded py33: commands succeeded congratulations :)
You also can check the latest Travis CI results, but Travis doesn’t build all of the above platforms.
Issues
Send your bug reports and feature requests to https://github.com/msabramo/djangotestxmlrpc/issues
Metadata
Release files for djangotestxmlrpc 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| djangotestxmlrpc-0.0.2.tar.gz | 2.8 kB | Without provenance | Details for djangotestxmlrpc-0.0.2.tar.gz |
Release files / djangotestxmlrpc-0.0.2.tar.gz
| Download URL | djangotestxmlrpc-0.0.2.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
98f46c090a0762e84f05e7eaf84c2699d59ed7f50dfac2abebd19124aba5835b
|
|
BLAKE2b-256 checksum How to use checksums |
fbcfd351d4a576513ba6fae63a5e471d9302abd6a5df6719abe9f8e85910a00b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for djangotestxmlrpc 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.