from notiframe import Notiframe import os mydir = os.path.dirname(os.path.abspath(__file__)) def test_config_dumpload(): path = os.path.join(mydir, '../notiframe/config.toml') os.remove(path) mgr = Notiframe.Manager() mgr.add_device('test', [1,2]) mgr.export_config_file() mgr = Notiframe.Manager() assert mgr.devices[0].name == 'test'