Beispiel #1
0
    def test_set_rigathon_path(self):
        rigathon_path = "rigathon_path"

        config = RigConfig(self.test_config_name)
        config.set_rigathon_path(rigathon_path)
        config_value = config.get_rigathon_path()
        self.assertEqual(config_value, rigathon_path)
Beispiel #2
0
    def test_save(self):
        rigathon_path = "rigathon_path"

        config = RigConfig(self.test_config_name)
        file_size = os.path.getsize(self.test_config_name)

        config.set_rigathon_path(rigathon_path)
        config.save()

        updated_file_size = os.path.getsize(self.test_config_name)
        self.assertNotEqual(file_size, updated_file_size)
Beispiel #3
0
 def test_get_rigathon_path(self):
     config = RigConfig(self.test_config_name)
     rigathon_path = config.get_rigathon_path()
     self.assertEqual(rigathon_path, None)