def test_bands_to_list(self): self.assertEqual(Scene._bands_to_list("one"), ["one"]) self.assertEqual(Scene._bands_to_list(["one"]), ["one"]) self.assertEqual(Scene._bands_to_list("one two three"), ["one", "two", "three"]) self.assertEqual(Scene._bands_to_list(["one", "two", "three"]), ["one", "two", "three"]) with self.assertRaises(TypeError): Scene._bands_to_list(1) with self.assertRaises(ValueError): Scene._bands_to_list([])
def test_bands_to_list(self): assert Scene._bands_to_list("one") == ["one"] assert Scene._bands_to_list(["one"]) == ["one"] assert Scene._bands_to_list("one two three") == ["one", "two", "three"] assert Scene._bands_to_list(["one", "two", "three"]) == ["one", "two", "three"] with pytest.raises(TypeError): Scene._bands_to_list(1) with pytest.raises(ValueError): Scene._bands_to_list([])