Exemplo n.º 1
0
 def test_open_file_error(self):
     with self.assertRaises(Exception):
         mesos.run_command(mesos.open_file("test"))
Exemplo n.º 2
0
 def test_open_file(self):
     tests_path = os.path.dirname(os.path.abspath(__file__))
     abs_file_path = os.path.join(tests_path, "test-files/mesos-state.json")
     mesos.open_file(abs_file_path)