def test_initialisation(self):
        """
        The initialisation of L{UsernameHashedPassword} will set C{username}
        and C{hashed} on it.
        """
        creds = UsernameHashedPassword(b"foo", b"bar")
        self.assertEqual(creds.username, b"foo")
        self.assertEqual(creds.hashed, b"bar")

        The initialisation of L{UsernameHashedPassword} will set C{username}
        and C{hashed} on it.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/cred/test/test_simpleauth.py