def test_files(self): fLOG(__file__, self._testMethodName, OutputPrint=__name__ == "__main__") path = os.path.abspath(os.path.dirname(__file__)) mg = MagicFile() cmd = path + " -f .*[.]py" fLOG("**", cmd) res = mg.lsr(cmd) fLOG(res) if len(res) == 0: raise FileNotFoundError("cmd: " + cmd) res = mg.lsr("") fLOG(res) assert len(res) > 0
def test_files(self): fLOG( __file__, self._testMethodName, OutputPrint=__name__ == "__main__") path = os.path.abspath(os.path.dirname(__file__)) mg = MagicFile() cmd = path + " -f .*[.]py" fLOG("**", cmd) res = mg.lsr(cmd) fLOG(res) if len(res) == 0: raise FileNotFoundError("cmd: " + cmd) res = mg.lsr("") fLOG(res) assert len(res) > 0