'compute_fp: Test imitation game method'

def test_imitation_game_method(self):

    method = 'imitation_game'
    error_tol = self.kwargs['error_tol']
    for mu in [self.mu_1, self.mu_2]:
        for i in self.unit_inverval:
            fp_computed = compute_fixed_point(self.T, i, method=method, mu=mu, **self.kwargs)
            self.assertTrue((abs((self.T(fp_computed, mu=mu) - fp_computed)) <= error_tol))
        i = np.asarray(self.unit_inverval)
        fp_computed = compute_fixed_point(self.T, i, method=method, mu=mu, **self.kwargs)
        self.assertTrue((abs((self.T(fp_computed, mu=mu) - fp_computed)).max() <= error_tol))
