def test_validate_not_enabled(self): authenticator = Authenticator() authenticator.enabled = False authenticator.validate('', '', '')
def test_signing_not_enabled(self): authenticator = Authenticator() authenticator.enabled = False signature = authenticator.sign('hello') self.assertEqual(signature, '')