Issue implemented non-existing config file created test
@@ -53,8 +53,10 @@ class NiftyNetGlobalConfigTest(TestCase):
self.assertTrue(global_config_1 is global_config_2)
def test_010_non_existing_config_file_created(self):
- # TODO
- self.fail('not implemented')
+ global_config = NiftyNetGlobalConfig()
+ self.assertTrue(isfile(NiftyNetGlobalConfigTest.config_file))
+ self.assertEqual(global_config.get_niftynet_config_folder(),
+ NiftyNetGlobalConfigTest.config_home)
def test_011_existing_config_file_loaded(self):
# TODO
