'Tests that queries that don\'t have an equals relation to a primary key or indexed field fail'

def test_primary_key_or_index_must_be_specified(self):

    with self.assertRaises(query.QueryException):
        q = TestModel.objects(test_result=25)
        list([i for i in q])
