예제 #1
0
 def test_unescape_LongString_ManyUnEscapePercents(self):
     message = "XXX%25XXXXXXXXXXXXX%25XXXXXXXXXXXXXXXX%25XXXXXXXXXXXXXXXXXXX%25XXXXXXXXXXXXXXXXX%25XXXXXXXXXXXXXX"
     expectResult = "XXX%XXXXXXXXXXXXX%XXXXXXXXXXXXXXXX%XXXXXXXXXXXXXXXXXXX%XXXXXXXXXXXXXXXXX%XXXXXXXXXXXXXX"
     result = Escape.unescape(message)
     self.assertEqual(expectResult, result)
예제 #2
0
 def test_unescape_LongString_UnEscapeSubStr(self):
     message = "XXXX%68%65%6c%6c%6fXXXX"
     expectResult = "XXXXhelloXXXX"
     escape_string = "hello"
     result = Escape.unescape(message,escape_string)
     self.assertEqual(expectResult, result)
예제 #3
0
 def test_unescape_nonEmptyStringNoEscapeNeeded(self):
     message = "XXXXXX"
     expectResult = message
     result = Escape.unescape(message)
     self.assertEqual(expectResult, result)
예제 #4
0
 def test_unescape_nonEmptyString_UnEscapePercent(self):
     message = "XXX%25XXX"
     expectResult = "XXX%XXX"
     result = Escape.unescape(message)
     self.assertEqual(expectResult, result)
예제 #5
0
 def test_escape_LongString_EscapeSubStr_MixedPercents_ButtingUp(self):
     message = "X%X%helloX%XhelloX%X%X%X"
     escape_string = "hello"
     expectResult = "X%25X%25%68%65%6c%6c%6fX%25X%68%65%6c%6c%6fX%25X%25X%25X"
     result = Escape.escape(message,escape_string)
     self.assertEqual(expectResult, result)
예제 #6
0
 def test_unescape_emptyString(self):
     message = ""
     expectResult = message
     result = Escape.unescape(message)
     self.assertEqual(expectResult, result)
예제 #7
0
 def test_unescape_LongString_ManyUnEscapePercents(self):
     message = "XXX%25XXXXXXXXXXXXX%25XXXXXXXXXXXXXXXX%25XXXXXXXXXXXXXXXXXXX%25XXXXXXXXXXXXXXXXX%25XXXXXXXXXXXXXX"
     expectResult = "XXX%XXXXXXXXXXXXX%XXXXXXXXXXXXXXXX%XXXXXXXXXXXXXXXXXXX%XXXXXXXXXXXXXXXXX%XXXXXXXXXXXXXX"
     result = Escape.unescape(message)
     self.assertEqual(expectResult, result)
예제 #8
0
 def test_unescape_LongString_UnEscapeSubStr(self):
     message = "XXXX%68%65%6c%6c%6fXXXX"
     expectResult = "XXXXhelloXXXX"
     escape_string = "hello"
     result = Escape.unescape(message, escape_string)
     self.assertEqual(expectResult, result)
예제 #9
0
 def test_unescape_nonEmptyString_UnEscapePercent(self):
     message = "XXX%25XXX"
     expectResult = "XXX%XXX"
     result = Escape.unescape(message)
     self.assertEqual(expectResult, result)
예제 #10
0
 def test_unescape_nonEmptyStringNoEscapeNeeded(self):
     message = "XXXXXX"
     expectResult = message
     result = Escape.unescape(message)
     self.assertEqual(expectResult, result)
예제 #11
0
 def test_unescape_emptyString(self):
     message = ""
     expectResult = message
     result = Escape.unescape(message)
     self.assertEqual(expectResult, result)
예제 #12
0
 def test_escape_LongString_EscapeSubStr_MixedPercents_ButtingUp(self):
     message = "X%X%helloX%XhelloX%X%X%X"
     escape_string = "hello"
     expectResult = "X%25X%25%68%65%6c%6c%6fX%25X%68%65%6c%6c%6fX%25X%25X%25X"
     result = Escape.escape(message, escape_string)
     self.assertEqual(expectResult, result)
예제 #13
0
from rooms import E34_R1
from rooms import E35_R1
from rooms import E35_R2
from rooms import E35_R3
from rooms import E40_R1
from rooms import E40_R2
from rooms import E41_R1
from rooms import E42_R1
from rooms import E44_R1
from rooms import E44_R2
from rooms import E44_R3
from rooms import E45_R1

escapes = {
    'E1': e.Escape('Escape Room Roma 1', 'Roma', 'Via Benadir 2, 00199 Roma', '3924359562 - 3333727927 - 3465820365',
                   'https://www.escaperoomroma.it/', 41.9281492, 12.5203319,
                   c.SEPARATOR.join([c.ACTORS_TAG, c.HORROR_TAG, c.MISTERY_TAG]), 'E1'),
    'E2': e.Escape('Escape Room Roma 2', 'Roma', 'Via del Casale Fainelli 69, 00157  Roma', '3924359562 - 3333727927 - 3465820365',
                   'https://www.escaperoomroma.it/', 41.9170743, 12.5462812,
                   c.SEPARATOR.join([c.ACTORS_TAG, c.HORROR_TAG]), 'E2'),
    'E3': e.Escape('Magic Escape 1', 'Magic', 'Via Bolzano 40, 00198 Roma', '3701141293 - 3489266475',
                   'https://magicescape.it/', 41.9214719, 12.5136879,
                   c.SEPARATOR.join([c.MISTERY_TAG, c.ADVENTURE_TAG]), 'E3'),
    'E5': e.Escape('Cogito Ergo Room', 'Cogito', 'Via Tiburtina 862, 00159 Roma', '0639727190 - 3668743988',
                   'https://cogitoergoroom.it/', 41.9181771, 12.5622175,
                   c.SEPARATOR.join([c.HORROR_TAG]), 'E5'),
    'E6': e.Escape('The Fear Escape Room', 'The Fear', 'Via Luigi Mancinelli 35, 00199 Roma', '3517039298',
                   'https://www.thefearescaperoom.it/', 41.9378439, 12.5120582,
                   c.SEPARATOR.join([c.ACTORS_TAG, c.HORROR_TAG]), 'E6'),
    'E7': e.Escape('Tribe Escape Room', 'Tribe', 'Via Derna 12, 00199 Roma', '0688651504 - 3407982795',
                   'https://www.tribescaperoom.it/', 41.9303491, 12.5171726,