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