def test_images_fail():
    """Test BatteryIcon() with a bad theme_path

    This theme path doesn't contain all of the required images.
    """
    batt = BatteryIcon(theme_path=TEST_DIR)
    with pytest.raises(images.LoadingError):
        batt.setup_images()
Test BatteryIcon() with a bad theme_path

    This theme path doesn't contain all of the required images.
    
test/widgets/test_battery.py