def test_clustal_sniffer_invalid_files(self): for invalid_out in self.invalid_clustal_out: self.assertEqual(_clustal_sniffer(invalid_out), (False, {}))
def test_clustal_sniffer_valid_files(self): for valid_out in self.valid_clustal_out: self.assertEqual(_clustal_sniffer(valid_out), (True, {}))
def test_clustal_sniffer_invalid_files(self): for invalid_out in self.invalid_clustal_out: self.assertEqual(_clustal_sniffer(invalid_out), (False, {})) # sniffer should return False on empty file (which isn't contained # in self.invalid_clustal_out since an empty file is a valid output) self.assertEqual(_clustal_sniffer(StringIO()), (False, {}))