File: test_extensions.py

package info (click to toggle)
python-psycopg2cffi 2.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 824 kB
  • sloc: python: 10,828; makefile: 17
file content (5 lines) | stat: -rw-r--r-- 210 bytes parent folder | download | duplicates (2)
1
2
3
4
5
from psycopg2cffi.extensions import AsIs

def test_asis_with_integer():
    # as documented here: http://initd.org/psycopg/docs/extensions.html#psycopg2.extensions.AsIs
    assert AsIs(42).getquoted() == b'42'