コード例 #1
0
ファイル: test_launch.py プロジェクト: maccallumlab/meld
    def test_should_run(self):
        "should run remd runner with correct parameters"
        launch.launch(self.log_handler)

        self.mock_remd_slave.run.assert_called_once_with(
            self.mock_comm, self.mock_runner
        )
コード例 #2
0
ファイル: test_launch.py プロジェクト: PDNALab/meld
    def test_should_init_store(self):
        "should initialize the store"
        with in_temp_dir():
            os.mkdir("Logs")

            launch.launch("Reference", self.log_handler)

            self.mock_store.initialize.assert_called_once_with(mode="a")
コード例 #3
0
ファイル: test_launch.py プロジェクト: PDNALab/meld
    def test_should_init_comm(self):
        "should initialize the communicator"
        with in_temp_dir():
            os.mkdir("Logs")

            launch.launch("Reference", self.log_handler)

            self.mock_comm.initialize.assert_called_once_with()
コード例 #4
0
ファイル: test_launch.py プロジェクト: PDNALab/meld
    def test_load_datastore(self):
        "should call load the datastore"
        with in_temp_dir():
            os.mkdir("Logs")

            launch.launch("Reference", self.log_handler)

            self.MockDataStore.load_data_store.assert_called_once_with()
コード例 #5
0
ファイル: test_launch.py プロジェクト: PDNALab/meld
    def test_should_run(self):
        "should run remd runner with correct parameters"
        with in_temp_dir():
            os.mkdir("Logs")

            launch.launch("Reference", self.log_handler)

            self.mock_remd_leader.run.assert_called_once_with(
                self.mock_comm, self.mock_runner, self.mock_store)
コード例 #6
0
    def test_should_call_to_slave(self):
        "should call to_slave on remd_runner"
        launch.launch(self.log_handler)

        self.mock_remd_master.to_slave.assert_called_once_with()
コード例 #7
0
ファイル: test_launch.py プロジェクト: PDNALab/meld
    def test_should_run(self):
        "should run remd runner with correct parameters"
        launch.launch("Reference", self.log_handler)

        self.mock_remd_follower.run.assert_called_once_with(
            self.mock_comm, self.mock_runner)
コード例 #8
0
ファイル: test_launch.py プロジェクト: PDNALab/meld
    def test_should_init_comm(self):
        "should initialize the communicator"
        launch.launch("Reference", self.log_handler)

        self.mock_comm.initialize.assert_called_once_with()
コード例 #9
0
ファイル: test_launch.py プロジェクト: frank-stonybrook/meld
    def test_should_not_init_store(self):
        "should not init store"
        launch.launch()

        self.assertEqual(self.mock_store.initialize.call_count, 0)
コード例 #10
0
ファイル: test_launch.py プロジェクト: frank-stonybrook/meld
    def test_should_call_to_slave(self):
        "should call to_slave on remd_runner"
        launch.launch()

        self.mock_remd_master.to_slave.assert_called_once_with()
コード例 #11
0
ファイル: test_launch.py プロジェクト: frank-stonybrook/meld
    def test_should_init_comm(self):
        "should initialize the communicator"
        launch.launch()

        self.mock_comm.initialize.assert_called_once_with()
コード例 #12
0
ファイル: test_launch.py プロジェクト: frank-stonybrook/meld
    def test_load_datastore(self):
        "should call vault.DataStore.load_data_store to load the data_store"
        launch.launch()

        self.MockDataStore.load_data_store.assert_called_once_with()
コード例 #13
0
ファイル: test_launch.py プロジェクト: frank-stonybrook/meld
    def test_should_run(self):
        "should run remd runner with correct parameters"
        launch.launch()

        self.mock_remd_master.run.assert_called_once_with(self.mock_comm, self.mock_runner, self.mock_store)
コード例 #14
0
ファイル: test_launch.py プロジェクト: frank-stonybrook/meld
    def test_should_init_store(self):
        "should initialize the store"
        launch.launch()

        self.mock_store.initialize.assert_called_once_with(mode='a')
コード例 #15
0
    def test_load_datastore(self):
        "should call load the datastore"
        launch.launch(self.log_handler)

        self.MockDataStore.load_data_store.assert_called_once_with()
コード例 #16
0
ファイル: test_launch.py プロジェクト: PDNALab/meld
    def test_load_datastore(self):
        "should call vault.DataStore.load_data_store to load the data_store"
        launch.launch("Reference", self.log_handler)

        self.MockDataStore.load_data_store.assert_called_once_with()
コード例 #17
0
    def test_should_init_store(self):
        "should initialize the store"
        launch.launch(self.log_handler)

        self.mock_store.initialize.assert_called_once_with(mode="a")
コード例 #18
0
ファイル: test_launch.py プロジェクト: PDNALab/meld
    def test_should_call_to_follower(self):
        "should call to_follower on remd_runner"
        launch.launch("Reference", self.log_handler)

        self.mock_remd_leader.to_follower.assert_called_once_with()
コード例 #19
0
    def test_should_run(self):
        "should run remd runner with correct parameters"
        launch.launch(self.log_handler)

        self.mock_remd_master.run.assert_called_once_with(
            self.mock_comm, self.mock_runner, self.mock_store)
コード例 #20
0
ファイル: test_launch.py プロジェクト: PDNALab/meld
    def test_should_not_init_store(self):
        "should not init store"
        launch.launch("Reference", self.log_handler)

        self.assertEqual(self.mock_store.initialize.call_count, 0)
コード例 #21
0
ファイル: test_launch.py プロジェクト: maccallumlab/meld
    def test_load_datastore(self):
        "should call load the datastore"
        launch.launch(self.log_handler)

        self.MockDataStore.load_data_store.assert_called_once_with()