Esempio n. 1
0
    def test_check_file_unknown(self):
        s = Sandbox(TEST_URL)
        f = open(
            os.path.join(RESOURCE_DIR,
                         "dae5f9a3-a911-4df4-82f8-b9343241ece5.tgz"), "rb")

        response = s.execute({
            "commands": ["true"],
            "save": True,
        }, f)
        time.sleep(0.1)
        self.assertFalse(s.check(response["environment"], "unknown.unk"))
Esempio n. 2
0
 def test_check_env_unknown(self):
     s = Sandbox(TEST_URL)
     time.sleep(0.1)
     self.assertFalse(s.check("unknown"))