mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-30 11:33:51 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			504 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			504 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from __future__ import absolute_import
 | |
| from __future__ import print_function
 | |
| 
 | |
| from zerver.lib.test_classes import ZulipTestCase
 | |
| 
 | |
| class CompatibilityTest(ZulipTestCase):
 | |
|     def test_compatibility(self):
 | |
|         # type: () -> None
 | |
|         result = self.client_get("/compatibility", HTTP_USER_AGENT='ZulipMobile/5.0')
 | |
|         self.assert_json_success(result)
 | |
|         result = self.client_get("/compatibility", HTTP_USER_AGENT='ZulipInvalid/5.0')
 | |
|         self.assert_json_error(result, "Client is too old")
 |