def test_droidmon_file(self): d = Droidmon() d.set_task({ "category": "file", }) filepath = Files.temp_named_put("", "droidmon.log") d.logs_path = os.path.dirname(filepath) # Ensure there is data available and none of it is a set(). assert d.run() != {} assert json.loads(json.dumps(d.run())) == d.run()
def test_droidmon_url(self): d = Droidmon() d.set_task({ "category": "url", }) assert d.run() == {}