Fix cleardb test

Although I find `assert url['PORT'] is None` more pythonic, PORT is set
in the main script via `'PORT': url.port or '',` so, we are obliged to
use checking for '' in our tests.
This commit is contained in:
Jeff Paine 2014-03-03 02:07:39 -05:00
parent 86984deace
commit f07b16b35c
2 changed files with 1 additions and 1 deletions

BIN
dj_database_url.pyc Normal file

Binary file not shown.

View file

@ -54,7 +54,7 @@ class DatabaseTestSuite(unittest.TestCase):
assert url['HOST'] == 'us-cdbr-east.cleardb.com'
assert url['USER'] == 'bea6eb025ca0d8'
assert url['PASSWORD'] == '69772142'
assert url['PORT'] is None
assert url['PORT'] is ''
def test_database_url(self):
del os.environ['DATABASE_URL']