|  | @@ -240,16 +240,20 @@ class ConfigTest(unittest.TestCase):
 | 
											
												
													
														|  |          self.tester.create()
 |  |          self.tester.create()
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      def test_config_write(self):
 |  |      def test_config_write(self):
 | 
											
												
													
														|  | -        config.save(os.path.join(os.path.dirname(__file__), 'testing_config'))
 |  | 
 | 
											
												
													
														|  | -        self.assertTrue(os.path.exists('testing_config'))
 |  | 
 | 
											
												
													
														|  | -        os.remove('testing_config')
 |  | 
 | 
											
												
													
														|  | 
 |  | +        _filename = os.path.join(os.path.dirname(__file__),
 | 
											
												
													
														|  | 
 |  | +                                 'testing_config')
 | 
											
												
													
														|  | 
 |  | +        config._file = _filename
 | 
											
												
													
														|  | 
 |  | +        config.save(_filename)
 | 
											
												
													
														|  | 
 |  | +        self.assertTrue(_filename)
 | 
											
												
													
														|  | 
 |  | +        os.remove(_filename)
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      def test_config_write_with_none(self):
 |  |      def test_config_write_with_none(self):
 | 
											
												
													
														|  | -        config._file = os.path.join(os.path.dirname(__file__),
 |  | 
 | 
											
												
													
														|  | -                                    'testing_config')
 |  | 
 | 
											
												
													
														|  | 
 |  | +        _filename = os.path.join(os.path.dirname(__file__),
 | 
											
												
													
														|  | 
 |  | +                                 'testing_config')
 | 
											
												
													
														|  | 
 |  | +        config._file = _filename
 | 
											
												
													
														|  |          config.save()
 |  |          config.save()
 | 
											
												
													
														|  | -        self.assertTrue(os.path.exists('testing_config'))
 |  | 
 | 
											
												
													
														|  | -        os.remove('testing_config')
 |  | 
 | 
											
												
													
														|  | 
 |  | +        self.assertTrue(os.path.exists(_filename))
 | 
											
												
													
														|  | 
 |  | +        os.remove(_filename)
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      def test_write_no_permission(self):
 |  |      def test_write_no_permission(self):
 | 
											
												
													
														|  |          # this test will pass if you run as root ...
 |  |          # this test will pass if you run as root ...
 |