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