mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-10-30 23:47:53 +03:00 
			
		
		
		
	Modified test case to pass regardless of JSON library
This commit is contained in:
		
							parent
							
								
									2d8739115c
								
							
						
					
					
						commit
						54caf6d7ba
					
				|  | @ -1,3 +1,5 @@ | |||
| import re | ||||
| 
 | ||||
| from django.conf.urls.defaults import patterns, url | ||||
| from django.test import TestCase | ||||
| 
 | ||||
|  | @ -187,6 +189,8 @@ class JSONRendererTests(TestCase): | |||
|         obj = {'foo': ['bar', 'baz']} | ||||
|         renderer = JSONRenderer(None) | ||||
|         content = renderer.render(obj, 'application/json') | ||||
|         # Fix failing test case which depends on version of JSON library. | ||||
|         content = re.sub(' +\n', '\n', content) | ||||
|         self.assertEquals(content, _flat_repr) | ||||
| 
 | ||||
|     def test_with_content_type_args(self): | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user