'L{DigestCredentialFactory._generateOpaque} returns a value without
newlines, regardless of the length of the nonce.'

def test_noNewlineOpaque(self):

    opaque = self.credentialFactory._generateOpaque(('long    nonce    ' * 10), None)
    self.assertNotIn('\n', opaque)
