def METHOD_NAME(self):
    X, y = load_breast_cancer(return_X_y=True)
    my_perm_id = str(uuid.uuid4())
    groups = np.random.random_integers(0, 3, (len(y),))
    perm_tester = PermutationTest(self.create_hyperpipe, n_perms=2, n_processes=1, random_state=11,
                                  permutation_id=my_perm_id)
    perm_tester.fit(X, y, groups=groups)
    results = PermutationTest._calculate_results(my_perm_id,
                                                 mongodb_path='mongodb://localhost:27017/photon_results')
    self.assertAlmostEqual(results.p_values['accuracy'], 0.333333333333)