def test_mixin_reads_default_configuration():
    mixin = storage.DietMixin()
    assert hasattr(mixin, 'config')
    assert (mixin.config['commands']['optipng'] == 'optipng')
    assert (mixin.temp_dir == '/tmp')
def test_mixin_reads_default_configuration():
    mixin = storage.DietMixin()
    assert hasattr(mixin, 'config')
    assert (mixin.config['commands']['optipng'] == 'optipng')
    assert (mixin.temp_dir == '/tmp')