#!/usr/bin/env python3
# pylint: disable=no-self-use
"""Test unit."""

import unittest


class OnlineKeyringTestCase(unittest.TestCase):
    """Test the keyring."""

    def test_keyring_general_online(self):
        """Save a key in the keyring, read back and compare."""
        import keyring

        keyring.set_password("umbr_api_test", "username2", "<PASSWORD>")
        read = keyring.get_password("umbr_api_test", "username2")
        assert read == "<PASSWORD>"


if __name__ == "__main__":
    unittest.main()

#!/usr/bin/env python3
# pylint: disable=no-self-use
"""Test unit."""

import unittest


class OnlineKeyringTestCase(unittest.TestCase):
    """Test the keyring."""

    def test_keyring_general_online(self):
        """Save a key in the keyring, read back and compare."""
        import keyring

        keyring.set_password("umbr_api_test", "username2", "<PASSWORD>")
        read = keyring.get_password("umbr_api_test", "username2")
        assert read == "<PASSWORD>"


if __name__ == "__main__":
    unittest.main()

#!/usr/bin/env python3 # pylint: disable=no-self-use Test unit. Test the keyring. Save a key in the keyring, read back and compare.