@@ -28,11 +28,10 @@ class StartupTest(TestCase):
2828
2929 """test startup_cli()."""
3030
31- @classmethod
32- def setUpClass (cls ):
33- cls .tmp_dir = tempfile .mkdtemp (suffix = 'tmuxp' )
34- if os .path .isdir (cls .tmp_dir ):
35- shutil .rmtree (cls .tmp_dir )
31+ def setUp (self ):
32+ self .tmp_dir = tempfile .mkdtemp (suffix = 'tmuxp' )
33+ if os .path .isdir (self .tmp_dir ):
34+ shutil .rmtree (self .tmp_dir )
3635
3736 def test_creates_config_dir_not_exists (self ):
3837 """cli.startup() creates config dir if not exists."""
@@ -42,22 +41,20 @@ def test_creates_config_dir_not_exists(self):
4241
4342 self .assertTrue (os .path .exists (self .tmp_dir ))
4443
45- @classmethod
46- def tearDownClass (cls ):
47- if os .path .isdir (cls .tmp_dir ):
48- shutil .rmtree (cls .tmp_dir )
49- logger .debug ('wiped %s' % cls .tmp_dir )
44+ def tearDown (self ):
45+ if os .path .isdir (self .tmp_dir ):
46+ shutil .rmtree (self .tmp_dir )
47+ logger .debug ('wiped %s' % self .tmp_dir )
5048
5149
5250class FindConfigsTest (TestCase ):
5351
5452 """test in_dir() test."""
5553
56- @classmethod
57- def setUpClass (cls ):
58- cls .tmp_dir = tempfile .mkdtemp (suffix = 'tmuxp' )
59- if os .path .isdir (cls .tmp_dir ):
60- shutil .rmtree (cls .tmp_dir )
54+ def setUp (self ):
55+ self .tmp_dir = tempfile .mkdtemp (suffix = 'tmuxp' )
56+ if os .path .isdir (self .tmp_dir ):
57+ shutil .rmtree (self .tmp_dir )
6158
6259 def test_in_dir_from_config_dir (self ):
6360 """config.in_dir() finds configs config dir."""
@@ -143,11 +140,10 @@ def test_get_configs_cwd(self):
143140 if os .path .isdir (tmp_dir ):
144141 shutil .rmtree (tmp_dir )
145142
146- @classmethod
147- def tearDownClass (cls ):
148- if os .path .isdir (cls .tmp_dir ):
149- shutil .rmtree (cls .tmp_dir )
150- logger .debug ('wiped %s' % cls .tmp_dir )
143+ def tearDown (self ):
144+ if os .path .isdir (self .tmp_dir ):
145+ shutil .rmtree (self .tmp_dir )
146+ logger .debug ('wiped %s' % self .tmp_dir )
151147
152148
153149def suite ():
0 commit comments