async def _test_credentials(self, username, password): """Return true if credentials is valid.""" try: client = Client(username, password) client.get_data() return True except Exception: # pylint: disable=broad-except pass return False
def test_get_data(): """Test get_data.""" from sampleclient.client import Client client = Client(USERNAME, PASSWORD) print(client.get_data())