def test_run_logging(self): """Verify simulations can be run with sample generation.""" temp = tempfile.NamedTemporaryFile() self.assertTrue(main.run([1], 1, sample_path=temp.name))
def test_run_invalid(self): """Verify sample genreation can only be performed on a single game.""" temp = tempfile.NamedTemporaryFile() self.assertFalse(main.run([1, 2, 3], 1, sample_path=temp.name))
def test_run(self): """Verify simulations can be run with graph generation.""" temp = tempfile.NamedTemporaryFile() self.assertTrue(main.run([0, 1], 2, graph_path=temp.name))