Skip to content
Permalink
Browse files

test values in SQL really always need to specify an ordering.

  • Loading branch information...
glyph committed Jul 11, 2012
1 parent b675ac1 commit fc23225eb29e9970ede0c6afc346d6b425a7b44d
Showing with 3 additions and 1 deletion.
  1. +3 −1 txdav/common/datastore/test/test_sql.py
@@ -331,7 +331,9 @@ def test_normalizeColumnUUIDs(self):
yield _normalizeColumnUUIDs(txn, rp.VIEWER_UID)
self.assertEqual(
(yield Select([rp.RESOURCE_ID, rp.NAME,
rp.VALUE, rp.VIEWER_UID], From=rp).on(txn)),
rp.VALUE, rp.VIEWER_UID], From=rp,
OrderBy=rp.RESOURCE_ID, Ascending=True,
).on(txn)),
[[1, "asdf", "property-value", "not-a-uuid"],
[2, "fdsa", "another-value",
"AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA"]]

0 comments on commit fc23225

Please sign in to comment.
You can’t perform that action at this time.