Beispiel #1
0
 def test_read_bytes_name(self):
     self.mkfile(bytes('my_init', sys.getfilesystemencoding()))
     completer.read_init_file(
         bytes('my_init', sys.getfilesystemencoding()))
Beispiel #2
0
 def test_read_abspath(self):
     self.mkfile('my_init')
     completer.read_init_file(abspath('my_init'))
Beispiel #3
0
 def test_read_tilde_expanded(self):
     self.mkfile(self.initfile)
     completer.read_init_file('~/.$$$')
Beispiel #4
0
 def test_read_empty_string(self):
     self.mkfile('my_init')
     self.mkfile(self.initfile)
     completer.read_init_file('')
Beispiel #5
0
 def test_read_relative(self):
     self.mkfile('my_init')
     completer.read_init_file('my_init')
Beispiel #6
0
 def test_read_pathlike_name(self):
     from pathlib import Path
     self.mkfile(Path('my_init'))
     completer.read_init_file(Path('my_init'))
Beispiel #7
0
 def test_read_None_name(self):
     self.mkfile('my_init')
     self.mkfile(self.initfile)
     completer.read_init_file(None)
Beispiel #8
0
 def test_read_tilde_expanded(self):
     self.mkfile(self.initfile)
     completer.read_init_file('~/.$$$')
Beispiel #9
0
 def test_read_bytes_name(self):
     self.mkfile(bytes('my_init', sys.getfilesystemencoding()))
     completer.read_init_file(bytes('my_init', sys.getfilesystemencoding()))
Beispiel #10
0
 def test_read_abspath(self):
     self.mkfile('my_init')
     completer.read_init_file(abspath('my_init'))
Beispiel #11
0
 def test_read_relative(self):
     self.mkfile('my_init')
     completer.read_init_file('my_init')
Beispiel #12
0
 def test_read_None_name(self):
     self.mkfile('my_init')
     self.mkfile(self.initfile)
     completer.read_init_file(None)
Beispiel #13
0
 def test_AAA_setup_init_file(self):
     self.mkfile(self.initfile)
     completer.read_init_file(self.initfile)
Beispiel #14
0
 def test_read_empty_string(self):
     self.mkfile('my_init')
     self.mkfile(self.initfile)
     completer.read_init_file('')