def METHOD_NAME(self, n):
    """Test the functions for generating a random invertible matrix and inverting it."""
    mat = random_invertible_binary_matrix(n, seed=1234)
    out = check_invertible_binary_matrix(mat)
    mat_inv = calc_inverse_matrix(mat, verify=True)
    mat_out = np.dot(mat, mat_inv) % 2
    self.assertTrue(np.array_equal(mat_out, np.eye(n)))
    self.assertTrue(out)