@@ -694,16 +694,31 @@ def test_start_at_none(self):
694694 with pytest .raises (ValueError ):
695695 query .start_at (None )
696696
697+ @pytest .mark .parametrize ('arg' , ['' , 'foo' , True , False , 0 , 1 , dict ()])
698+ def test_valid_start_at (self , arg ):
699+ query = self .ref .order_by_child ('foo' ).start_at (arg )
700+ assert query ._querystr == 'orderBy="foo"&startAt={0}' .format (json .dumps (arg ))
701+
697702 def test_end_at_none (self ):
698703 query = self .ref .order_by_child ('foo' )
699704 with pytest .raises (ValueError ):
700705 query .end_at (None )
701706
707+ @pytest .mark .parametrize ('arg' , ['' , 'foo' , True , False , 0 , 1 , dict ()])
708+ def test_valid_end_at (self , arg ):
709+ query = self .ref .order_by_child ('foo' ).end_at (arg )
710+ assert query ._querystr == 'endAt={0}&orderBy="foo"' .format (json .dumps (arg ))
711+
702712 def test_equal_to_none (self ):
703713 query = self .ref .order_by_child ('foo' )
704714 with pytest .raises (ValueError ):
705715 query .equal_to (None )
706716
717+ @pytest .mark .parametrize ('arg' , ['' , 'foo' , True , False , 0 , 1 , dict ()])
718+ def test_valid_equal_to (self , arg ):
719+ query = self .ref .order_by_child ('foo' ).equal_to (arg )
720+ assert query ._querystr == 'equalTo={0}&orderBy="foo"' .format (json .dumps (arg ))
721+
707722 def test_range_query (self , initquery ):
708723 query , order_by = initquery
709724 query .start_at (1 )
0 commit comments