'Tests the queryset filter method parses it\'s kwargs properly'

def test_query_filter_parsing(self):

    query1 = TestModel.objects(test_id=5)
    assert (len(query1._where) == 1)
    op = query1._where[0]
    assert isinstance(op, statements.WhereClause)
    assert isinstance(op.operator, operators.EqualsOperator)
    assert (op.value == 5)
    query2 = query1.filter(expected_result__gte=1)
    assert (len(query2._where) == 2)
    op = query2._where[1]
    self.assertIsInstance(op, statements.WhereClause)
    self.assertIsInstance(op.operator, operators.GreaterThanOrEqualOperator)
    assert (op.value == 1)
