@@ -58,14 +58,14 @@ def test_query_should_add_start_date(self):
5858 q .search_query = "spotify"
5959 q .start_time = self .datetime_with_timezone (datetime (2012 , 12 , 28 , 9 , 1 , 22 ), "UTC" )
6060 query_string = q .build_query_string ()
61- self .assertEqual (query_string , "spotify start-date:2012-12-28T09 :01:22Z " )
61+ self .assertEqual (query_string , "spotify start-date:2012-12-28 09 :01:22 " )
6262
6363 def test_query_should_add_end_date (self ):
6464 q = self ._client .query ()
6565 q .search_query = "spotify"
6666 q .end_time = self .datetime_with_timezone (datetime (2012 , 12 , 28 , 9 , 1 , 22 ), "UTC" )
6767 query_string = q .build_query_string ()
68- self .assertEqual (query_string , "spotify end-date:2012-12-28T09 :01:22Z " )
68+ self .assertEqual (query_string , "spotify end-date:2012-12-28 09 :01:22 " )
6969
7070 def test_query_should_add_lang (self ):
7171 q = self ._client .query ()
@@ -82,7 +82,7 @@ def test_query_should_build_query_string_with_deprecated_params(self):
8282 q .end_time = self .datetime_with_timezone (datetime (2013 , 12 , 28 , 9 , 1 , 22 ), "UTC" )
8383 query_string = q .build_query_string ()
8484 self .assertEqual (query_string ,
85- "spotify lang:en start-date:2012-12-28T09 :01:22Z end-date:2013-12-28T09 :01:22Z " )
85+ "spotify lang:en start-date:2012-12-28 09 :01:22 end-date:2013-12-28 09 :01:22 " )
8686
8787 def test_query_should_build_query_string (self ):
8888 q = self ._client .query ()
@@ -92,31 +92,31 @@ def test_query_should_build_query_string(self):
9292 q .end_time = self .datetime_with_timezone (datetime (2013 , 12 , 28 , 9 , 1 , 22 ), "UTC" )
9393 query_string = q .build_query_string ()
9494 self .assertEqual (query_string ,
95- "spotify lang:en start-date:2012-12-28T09 :01:22Z end-date:2013-12-28T09 :01:22Z " )
95+ "spotify lang:en start-date:2012-12-28 09 :01:22 end-date:2013-12-28 09 :01:22 " )
9696
9797 def test_query_should_add_start_time (self ):
9898 q = self ._client .query ()
9999 q .pattern = "spotify"
100100 q .start_time = self .datetime_with_timezone (datetime (2012 , 12 , 28 , 9 , 1 , 22 ), "UTC" )
101- self .assertIn ("start-date:2012-12-28T09 :01:22Z " , q .build_query_string ())
101+ self .assertIn ("start-date:2012-12-28 09 :01:22 " , q .build_query_string ())
102102
103103 def test_query_using_start_time_without_timezone (self ):
104104 q = self ._client .query ()
105105 q .pattern = "spotify"
106106 q .start_time = datetime (2012 , 12 , 28 , 9 , 1 , 22 )
107- self .assertIn ("start-date:2012-12-28T09 :01:22Z " , q .build_query_string ())
107+ self .assertIn ("start-date:2012-12-28 09 :01:22 " , q .build_query_string ())
108108
109109 def test_query_using_start_time_with_timezone_other_than_utc (self ):
110110 q = self ._client .query ()
111111 q .pattern = "spotify"
112112 q .start_time = self .datetime_with_timezone (datetime (2012 , 12 , 28 , 9 , 1 , 22 ), "Europe/Stockholm" )
113- self .assertIn ("start-date:2012-12-28T08 :01:22Z " , q .build_query_string ())
113+ self .assertIn ("start-date:2012-12-28 08 :01:22 " , q .build_query_string ())
114114
115115 def test_query_using_start_time_parsed_by_dateutil (self ):
116116 q = self ._client .query ()
117117 q .pattern = "spotify"
118118 q .start_time = dateutil .parser .parse ("2012-12-28 09:01:22 -0800" )
119- self .assertIn ("start-date:2012-12-28T17 :01:22Z " , q .build_query_string ())
119+ self .assertIn ("start-date:2012-12-28 17 :01:22 " , q .build_query_string ())
120120
121121 def test_query_when_start_time_is_not_a_datetime (self ):
122122 q = self ._client .query ()
@@ -127,25 +127,25 @@ def test_query_should_add_end_time(self):
127127 q = self ._client .query ()
128128 q .pattern = "spotify"
129129 q .end_time = self .datetime_with_timezone (datetime (2012 , 12 , 28 , 9 , 1 , 22 ), "UTC" )
130- self .assertIn ("end-date:2012-12-28T09 :01:22Z " , q .build_query_string ())
130+ self .assertIn ("end-date:2012-12-28 09 :01:22 " , q .build_query_string ())
131131
132132 def test_query_using_end_time_without_timezone (self ):
133133 q = self ._client .query ()
134134 q .pattern = "spotify"
135135 q .end_time = datetime (2012 , 12 , 28 , 9 , 1 , 22 )
136- self .assertIn ("end-date:2012-12-28T09 :01:22Z " , q .build_query_string ())
136+ self .assertIn ("end-date:2012-12-28 09 :01:22 " , q .build_query_string ())
137137
138138 def test_query_using_end_time_with_timezone_other_than_utc (self ):
139139 q = self ._client .query ()
140140 q .pattern = "spotify"
141141 q .end_time = self .datetime_with_timezone (datetime (2012 , 12 , 28 , 9 , 1 , 22 ), "Europe/Stockholm" )
142- self .assertIn ("end-date:2012-12-28T08 :01:22Z " , q .build_query_string ())
142+ self .assertIn ("end-date:2012-12-28 08 :01:22 " , q .build_query_string ())
143143
144144 def test_query_using_end_time_parsed_by_dateutil (self ):
145145 q = self ._client .query ()
146146 q .pattern = "spotify"
147147 q .end_time = dateutil .parser .parse ("2012-12-28 09:01:22 +0800" )
148- self .assertIn ("2012-12-28T01 :01:22Z " , q .build_query_string ())
148+ self .assertIn ("2012-12-28 01 :01:22 " , q .build_query_string ())
149149
150150 def test_query_when_end_time_is_not_a_datetime (self ):
151151 q = self ._client .query ()
@@ -156,7 +156,7 @@ def test_query_should_encode_url_parameters(self):
156156 q = self ._client .query ()
157157 q .pattern = "spotify"
158158 q .end_time = self .datetime_with_timezone (datetime (2012 , 12 , 28 , 9 , 1 , 22 ), "UTC" )
159- self .assertIn ("end-date%3A2012-12-28T09 %3A01%3A22Z " , q .url_parameters ())
159+ self .assertIn ("end-date%3A2012-12-28+09 %3A01%3A22 " , q .url_parameters ())
160160
161161 def test_query_pattern (self ):
162162 q = self ._client .query ()
0 commit comments