Esempio n. 1
0
 def setUp(self):
     """What we need to run tests."""
     tsd.get_config()
     try:
         os.mkdir('./test_data/tmp')
     except OSError as err:
         # Error 17 means directory exists, that's fine
         if 17 != err.errno:
             raise
Esempio n. 2
0
 def test_local_config(self):
     """Test that ./.tsdrc exists and is correct."""
     tsd.get_config()
     config = tsd.G_CONFIG
     self.assertEqual(config['series_dir'], './test_data/')
     self.assertEqual(config['testing'], True)