@@ -38,14 +38,12 @@ def test_socket_name(self):
3838
3939 def test_socket_path (self ):
4040 """ ``-S`` socket_path (alternative path for server socket). """
41-
4241 myserver = Server (socket_path = 'test' )
4342
4443 self .assertEqual (myserver .socket_path , 'test' )
4544
4645 def test_config (self ):
4746 """ ``-f`` file for tmux(1) configuration. """
48-
4947 myserver = Server (config_file = 'test' )
5048 self .assertEqual (myserver .config_file , 'test' )
5149
@@ -67,17 +65,16 @@ def test_88_colors(self):
6765 self .assertIn ('-8' , proc .cmd )
6866 self .assertNotIn ('-2' , proc .cmd )
6967
70- class Environment (TmuxTestCase ):
68+
69+ class EnvironmentTest (TmuxTestCase ):
7170
7271 def test_show_environment (self ):
7372 """Server.show_environment() returns dict."""
74-
7573 vars = self .server .show_environment ()
7674 self .assertIsInstance (vars , dict )
7775
7876 def test_set_show_environment_single (self ):
7977 """Set environment then Server.show_environment(key)."""
80-
8178 self .server .set_environment ('FOO' , 'BAR' )
8279 self .assertEqual ('BAR' , self .server .show_environment ('FOO' ))
8380
@@ -94,4 +91,5 @@ def test_show_environment_not_set(self):
9491def suite ():
9592 suite = unittest .TestSuite ()
9693 suite .addTest (unittest .makeSuite (ServerTest ))
94+ suite .addTest (unittest .makeSuite (EnvironmentTest ))
9795 return suite
0 commit comments