def test_prepare_replica_for_exchange_not_implemented(self):
     from radical.ensemblemd import ReplicaExchange
     from radical.ensemblemd.patterns.replica_exchange import Replica
     replica = Replica(8)
     re_pattern = ReplicaExchange()
     with pytest.raises(NotImplementedError):
         re_pattern.prepare_replica_for_exchange(replica)
 def test_prepare_replica_for_exchange_not_implemented(self):
     from radical.ensemblemd import ReplicaExchange
     from radical.ensemblemd.patterns.replica_exchange import Replica
     replica = Replica(8)
     re_pattern = ReplicaExchange()
     with pytest.raises(NotImplementedError):
         re_pattern.prepare_replica_for_exchange(replica)
 def test_perform_swap_not_implemented(self):
     from radical.ensemblemd import ReplicaExchange
     from radical.ensemblemd.patterns.replica_exchange import Replica
     replica_i = Replica(8)
     replica_j = Replica(8)
     re_pattern = ReplicaExchange()
     with pytest.raises(NotImplementedError):
         re_pattern.perform_swap(replica_i, replica_j)
 def test_get_swap_matrix_not_implemented(self):
     from radical.ensemblemd import ReplicaExchange
     from radical.ensemblemd.patterns.replica_exchange import Replica
     temp = range(1, 3)
     replica = Replica(8)
     re_pattern = ReplicaExchange()
     with pytest.raises(NotImplementedError):
         re_pattern.get_swap_matrix(replica, temp)
    def test_add_replicas(self):
        from radical.ensemblemd import ReplicaExchange
        from radical.ensemblemd.patterns.replica_exchange import Replica

        replica = Replica(8)
        re_pattern = ReplicaExchange()
        re_pattern.add_replicas(replica)
        assert re_pattern.get_replicas() == replica
 def test_perform_swap_not_implemented(self):
     from radical.ensemblemd import ReplicaExchange
     from radical.ensemblemd.patterns.replica_exchange import Replica
     replica_i = Replica(8)
     replica_j = Replica(8)
     re_pattern = ReplicaExchange()
     with pytest.raises(NotImplementedError):
         re_pattern.perform_swap(replica_i,replica_j)
 def test_get_swap_matrix_not_implemented(self):
     from radical.ensemblemd import ReplicaExchange
     from radical.ensemblemd.patterns.replica_exchange import Replica
     temp = range(1,3)
     replica = Replica(8)
     re_pattern = ReplicaExchange()
     with pytest.raises(NotImplementedError):
         re_pattern.get_swap_matrix(replica,temp)
    def test_add_replicas(self):
        from radical.ensemblemd import ReplicaExchange
        from radical.ensemblemd.patterns.replica_exchange import Replica

        replica = Replica(8)
        re_pattern = ReplicaExchange()
        re_pattern.add_replicas(replica)
        assert re_pattern.get_replicas()== replica
 def test_exchange_not_implemented(self):
     from radical.ensemblemd import ReplicaExchange
     from radical.ensemblemd.patterns.replica_exchange import Replica
     replicas = []
     temp = range(1, 3)
     for k in range(8):
         r = Replica(k)
         replicas.append(r)
     replica = Replica(8)
     re_pattern = ReplicaExchange()
     with pytest.raises(NotImplementedError):
         re_pattern.exchange(replica, replicas, temp)
 def test_exchange_not_implemented(self):
     from radical.ensemblemd import ReplicaExchange
     from radical.ensemblemd.patterns.replica_exchange import Replica
     replicas = []
     temp = range(1,3)
     for k in range(8):
         r = Replica(k)
         replicas.append(r)
     replica = Replica(8)
     re_pattern = ReplicaExchange()
     with pytest.raises(NotImplementedError):
         re_pattern.exchange(replica,replicas,temp)
    def test_pattern_initialize_replicas_not_implemented(self):
        from radical.ensemblemd import ReplicaExchange

        re_pattern = ReplicaExchange()
        with pytest.raises(NotImplementedError):
            re_pattern.initialize_replicas()
    def test_pattern_name(self):
        from radical.ensemblemd import ReplicaExchange

        re_pattern = ReplicaExchange()
        assert re_pattern.name == 'ReplicaExchange'
    def test_pattern_initialize_replicas_not_implemented(self):
        from radical.ensemblemd import ReplicaExchange

        re_pattern = ReplicaExchange()
        with pytest.raises(NotImplementedError):
            re_pattern.initialize_replicas()