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