| 
									
										
										
										
											2017-09-26 16:46:18 +01:00
										 |  |  | from __future__ import unicode_literals | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import sure  # noqa | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import moto.server as server | 
					
						
							|  |  |  | from moto import mock_polly | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | '''
 | 
					
						
							|  |  |  | Test the different server responses | 
					
						
							|  |  |  | '''
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-09-27 09:54:46 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-09-26 16:46:18 +01:00
										 |  |  | @mock_polly | 
					
						
							|  |  |  | def test_polly_list(): | 
					
						
							|  |  |  |     backend = server.create_backend_app("polly") | 
					
						
							|  |  |  |     test_client = backend.test_client() | 
					
						
							| 
									
										
										
										
											2017-09-27 09:54:46 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |     res = test_client.get('/v1/lexicons') | 
					
						
							|  |  |  |     res.status_code.should.equal(200) |