File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1- # -*- coding: utf-8 -*-
21"""
32Tests of ConfigurationModel
43"""
@@ -350,22 +349,22 @@ def test_key_string_values(self, mock_cache):
350349 """ Ensure str() vs unicode() doesn't cause duplicate cache entries """
351350 ExampleKeyedConfig (
352351 left = 'left' ,
353- right = u'〉☃ ' ,
352+ right = u'\N{RIGHT ANGLE BRACKET} \N{SNOWMAN} ' ,
354353 enabled = True ,
355354 int_field = 10 ,
356355 user = self .user ,
357356 changed_by = self .user
358357 ).save ()
359358 mock_cache .get .return_value = None
360359
361- entry = ExampleKeyedConfig .current ('left' , u'〉☃ ' , self .user )
360+ entry = ExampleKeyedConfig .current ('left' , u'\N{RIGHT ANGLE BRACKET} \N{SNOWMAN} ' , self .user )
362361 key = mock_cache .get .call_args [0 ][0 ]
363362 self .assertEqual (entry .int_field , 10 )
364363 mock_cache .get .assert_called_with (key )
365364 self .assertEqual (mock_cache .set .call_args [0 ][0 ], key )
366365
367366 mock_cache .get .reset_mock ()
368- entry = ExampleKeyedConfig .current (u'left' , u'〉☃ ' , self .user )
367+ entry = ExampleKeyedConfig .current (u'left' , u'\N{RIGHT ANGLE BRACKET} \N{SNOWMAN} ' , self .user )
369368 self .assertEqual (entry .int_field , 10 )
370369 mock_cache .get .assert_called_with (key )
371370
You can’t perform that action at this time.
0 commit comments