Ejemplo n.º 1
0
 def test_remove_mode_ctf_starfile(self):
     remove = s.zerofill(['91', '092'], 4)
     s.write_file(self.ctf_starfile_in,
                  self.starfile_out,
                  self.filename,
                  self.digits,
                  remove,
                  mode='r')
     with open(self.starfile_out, 'r') as f:
         self.assertMultiLineEqual(f.read(), self.exp_ctf_starfile)
Ejemplo n.º 2
0
 def test_keep_mode_ctf_starfile(self):
     add = ['1', '2']
     s.write_file(self.ctf_starfile_in,
                  self.starfile_out,
                  self.filename,
                  self.digits,
                  add,
                  mode='k')
     with open(self.starfile_out, 'r') as f:
         self.assertMultiLineEqual(f.read(), self.exp_ctf_starfile)
 def test_remove_mode_ctf_starfile(self):
     remove = s.zerofill(['91','092'], 4)
     s.write_file(self.ctf_starfile_in, self.starfile_out, 
                  self.filename, self.digits, remove, mode='r')
     with open(self.starfile_out, 'r') as f:
         self.assertMultiLineEqual(f.read(), self.exp_ctf_starfile)
 def test_keep_mode_ctf_starfile(self):
     add = ['1','2']
     s.write_file(self.ctf_starfile_in, self.starfile_out, 
                  self.filename, self.digits, add, mode='k')
     with open(self.starfile_out, 'r') as f:
         self.assertMultiLineEqual(f.read(), self.exp_ctf_starfile)