@tools.raises(DirectoryException)
    def test_add_to_rc_norc_rewrite(self):
        directory = Directory(os.path.join(self.temp_dir, 'test'), rewrite_config=False)
        directory.add_to_rc("test")
With the rc_rewrite flag false, an exception should be thrown if
dataset/ETHPy150Open toumorokoshi/sprinter/tests/core/test_directory.py/TestDirectory.test_add_to_rc_norc_rewrite