Xof/django-pglocks

test_basic_lock fails

yuvadm opened this issue · 0 comments

$ DJANGO_SETTINGS_MODULE=django_pglocks.test_settings PYTHONPATH=. django-admin.py test
Creating test database for alias 'default'...
F
======================================================================
FAIL: test_basic_lock (django_pglocks.tests.PgLocksTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../django-pglocks/django_pglocks/tests.py", line 30, in test_basic_lock
    self.assertIsNone(acquired)
AssertionError: True is not None

Shouldn't this test assert for True-ness rather that None-ness?