예제 #1
0
 def test_parse_key_from_long_tuple(self):
     self.assertEquals(Cache._parse_key(('w', 'h', 'a', 't')), 'h')
예제 #2
0
 def test_parse_key(self):
     self.assertEquals(Cache._parse_key('whatever'), 'whatever')
예제 #3
0
 def test_parse_key_from_tuple(self):
     self.assertEquals(Cache._parse_key(('what', 'ever')), 'ever')
예제 #4
0
 def test_parse_key_with_empty_string(self):
     self.assertEquals(Cache._parse_key(''), '')