Пример #1
0
 def test_newick_sniffer_invalid_files(self):
     for invalid, _ in self.invalid_newicks:
         fh = io.StringIO(invalid)
         self.assertEqual(_newick_sniffer(fh), (False, {}))
         fh.close()
Пример #2
0
 def test_newick_sniffer_invalid_files(self):
     for invalid, _ in self.invalid_newicks:
         fh = io.StringIO(invalid)
         self.assertEqual(_newick_sniffer(fh), (False, {}))
         fh.close()
Пример #3
0
 def test_newick_sniffer_valid_files(self):
     for _, newicks in self.trees_newick_lists:
         for newick in newicks:
             fh = io.StringIO(newick)
             self.assertEqual(_newick_sniffer(fh), (True, {}))
             fh.close()
Пример #4
0
 def test_newick_sniffer_valid_files(self):
     for _, newicks in self.trees_newick_lists:
         for newick in newicks:
             fh = io.StringIO(newick)
             self.assertEqual(_newick_sniffer(fh), (True, {}))
             fh.close()