def test_escape_bracket():
    assert escape_bracket('foo') == 'foo'
    assert escape_bracket('foo[') == 'foo\\['
    assert escape_bracket('[ 10 TO 1000]') == '[ 10 TO 1000]'
Esempio n. 2
0
def test_escape_bracket():
    assert escape_bracket('foo') == 'foo'
    assert escape_bracket('foo[') == 'foo\\['
    assert escape_bracket('[ 10 TO 1000]') == '[ 10 TO 1000]'
Esempio n. 3
0
 def test_escape_bracket(self):
     self.assertEqual(escape_bracket('foo'), 'foo')
     self.assertEqual(escape_bracket('foo['), 'foo\\[')
     self.assertEqual(escape_bracket('[ 10 TO 1000]'), '[ 10 TO 1000]')