1 {-# LANGUAGE OverloadedStrings #-}
3 Copyright : (c) 2015 Julien Tanguy
6 Maintainer : julien.tanguy@jhome.fr
9 This test suite is based on the pymacaroons test suite:
10 <https://github.com/ecordell/pymacaroons>
12 module Crypto.Macaroon.Verifier.Internal.Tests where
14 import qualified Data.ByteString.Char8 as B8
17 -- import Test.Tasty.HUnit
19 import Test.Tasty.QuickCheck hiding (Failure, Success)
21 import Crypto.Macaroon
22 import Crypto.Macaroon.Verifier.Internal
24 import Crypto.Macaroon.Instances
27 tests = testGroup "Crypto.Macaroon.Verifier.Internal" [ sigs
30 sigs = testProperty "Signatures" $ \sm -> verifySig (secret sm) (macaroon sm) == Right (macaroon sm)