<s> from __future__ import unicode_literals <EOL> import os . path <EOL> from pre_commit . commands . clean import clean <EOL> from pre_commit . util import rmtree <EOL> def test_clean ( runner_with_mocked_store ) : <EOL> assert os . path . exists ( runner_with_mocked_store . store . directory ) <EOL> clean ( runner_with_mocked_store ) <EOL> assert not os . path . exists ( runner_with_mocked_store . store . directory ) <EOL> def test_clean_empty ( runner_with_mocked_store ) : <EOL> """<STR_LIT>""" <EOL> rmtree ( runner_with_mocked_store . store . directory ) <EOL> assert not os . path . exists ( runner_with_mocked_store . store . directory ) <EOL> clean ( runner_with_mocked_store ) <EOL> assert not os . path . exists ( runner_with_mocked_store . store . directory ) </s>
