Permalink
Browse files

Added failing test case for #438.

  • Loading branch information...
1 parent 96f1624 commit af4e907ccecf8875f6e7f6e63644200a5aa49774 @toastdriven toastdriven committed Nov 9, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 tests/simple_tests/tests/simple_backend.py
@@ -119,6 +119,11 @@ def test_general_queries(self):
self.assertTrue(len(self.sqs.exclude(name='daniel')) > 0)
self.assertTrue(len(self.sqs.order_by('-pub_date')) > 0)
+ def test_more_like_this(self):
+ # MLT shouldn't be horribly broken.
+ mm1 = MockModel.objects.get(pk=1)
+ self.assertTrue(len(self.sqs.filter(text=1).more_like_this(mm1)) > 0)
+
def test_values_queries(self):
sqs = self.sqs.auto_query('daniel')
self.assertTrue(len(sqs) > 0)

0 comments on commit af4e907

Please sign in to comment.