| 
									
										
										
										
											2014-11-22 14:03:09 -05:00
										 |  |  | from __future__ import unicode_literals | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import json | 
					
						
							|  |  |  | import sure  # noqa | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import moto.server as server | 
					
						
							|  |  |  | from moto import mock_redshift | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-10-31 08:44:26 -07:00
										 |  |  | """
 | 
					
						
							| 
									
										
										
										
											2014-11-22 14:03:09 -05:00
										 |  |  | Test the different server responses | 
					
						
							| 
									
										
										
										
											2019-10-31 08:44:26 -07:00
										 |  |  | """
 | 
					
						
							| 
									
										
										
										
											2014-11-22 14:03:09 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @mock_redshift | 
					
						
							|  |  |  | def test_describe_clusters(): | 
					
						
							|  |  |  |     backend = server.create_backend_app("redshift") | 
					
						
							|  |  |  |     test_client = backend.test_client() | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-10-31 08:44:26 -07:00
										 |  |  |     res = test_client.get("/?Action=DescribeClusters") | 
					
						
							| 
									
										
										
										
											2014-11-22 14:03:09 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-15 22:05:11 -04:00
										 |  |  |     result = res.data.decode("utf-8") | 
					
						
							| 
									
										
										
										
											2017-11-12 11:18:25 +00:00
										 |  |  |     result.should.contain("<Clusters></Clusters>") |