def test_check_geo_string_not_surrounded_by_ocean(self): """Tests that check geo string method raises ValueError if the string is not surrounded by Ocean code. """ geo_string_1 = """\ OOOOOOOOOOOO OOOJJSSSSMMM OSSSSSJJJJMM """ with pytest.raises(ValueError): Island._check_geo_string(geo_string_1)
def test_check_geo_string_not_rectangular(self): """Tests that the geo string checker raises ValueError if the geo string is non-rectangular """ geo_string_2 = """\ OOOOOOOOOOOO OOOJJSSSSMMOOO OOOOOOOOOOOOOOOO """ with pytest.raises(ValueError): Island._check_geo_string(geo_string_2)