def test_available_writers(self): """Test the 'available_writers' function.""" from satpy import available_writers writer_names = available_writers() self.assertGreater(len(writer_names), 0) self.assertIsInstance(writer_names[0], str) self.assertIn('geotiff', writer_names) writer_infos = available_writers(as_dict=True) self.assertEqual(len(writer_names), len(writer_infos)) self.assertIsInstance(writer_infos[0], dict) for writer_info in writer_infos: self.assertIn('name', writer_info)