Skip to content

Commit

Permalink
New SQLite, new error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Bouke committed Jan 11, 2014
1 parent 4e1c811 commit 7c48005
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,11 @@ def test_duplicate_create(self):

def test_integrity(self):
self.store.user_agent = None
with self.assertRaisesMessage(IntegrityError,
'user_sessions_session.user_agent may '
'not be NULL'):
with self.assertRaisesRegexp(
IntegrityError,
'(user_sessions_session.user_agent may not be NULL|'
'NOT NULL constraint failed: user_sessions_session.user_agent)'
):
self.store.save()

def test_delete(self):
Expand Down

0 comments on commit 7c48005

Please sign in to comment.