示例#1
0
def test_has_open_quotes4():
    for s in ['""', '""" """', '"hi" "ipython"']:
        nt.assert_false(completer.has_open_quotes(s))
示例#2
0
def test_has_open_quotes2():
    for s in ['"', '"""', '"hi" "']:
        nt.assert_equal(completer.has_open_quotes(s), '"')
示例#3
0
def test_has_open_quotes3():
    for s in ["''", "''' '''", "'hi' 'ipython'"]:
        nt.assert_false(completer.has_open_quotes(s))
示例#4
0
def test_has_open_quotes4():
    for s in ['""', '""" """', '"hi" "ipython"']:
        nt.assert_false(completer.has_open_quotes(s))
示例#5
0
def test_has_open_quotes1():
    for s in ["'", "'''", "'hi' '"]:
        nt.assert_equal(completer.has_open_quotes(s), "'")
示例#6
0
def test_has_open_quotes2():
    for s in ['"', '"""', '"hi" "']:
        nt.assert_equal(completer.has_open_quotes(s), '"')
示例#7
0
def test_has_open_quotes3():
    for s in ["''", "''' '''", "'hi' 'ipython'"]:
        nt.assert_false(completer.has_open_quotes(s))
示例#8
0
def test_has_open_quotes1():
    for s in ["'", "'''", "'hi' '"]:
        nt.assert_equal(completer.has_open_quotes(s), "'")
示例#9
0
 def test_has_open_quotes4(self):
     for s in ['""', '""" """', '"hi" "ipython"']:
         self.assertFalse(completer.has_open_quotes(s))
示例#10
0
 def test_has_open_quotes3(self):
     for s in ["''", "''' '''", "'hi' 'ipython'"]:
         self.assertFalse(completer.has_open_quotes(s))
示例#11
0
 def test_has_open_quotes2(self):
     for s in ['"', '"""', '"hi" "']:
         self.assertEqual(completer.has_open_quotes(s), '"')
示例#12
0
 def test_has_open_quotes1(self):
     for s in ["'", "'''", "'hi' '"]:
         self.assertEqual(completer.has_open_quotes(s), "'")