# Path: oaxmlapi/connections.py
# class Application(object):
# class Auth(_Base):
# class RemoteAuth(_Base):
# class Whoami(_Base):
# class Request(_Base):
# class Error(_Base):
#     def __init__(self, client, client_version, namespace, key):
#     def __str__(self):
#     def __init__(self, company, username, password):
#     def __str__(self):
#     def auth(self):
#     def _main(self):
#     def __init__(self, company, username, password):
#     def __str__(self):
#     def remoteauth(self):
#     def _main(self):
#     def __init__(self, datatype):
#     def __str__(self):
#     def datatype(self):
#     def datatype(self, d):
#     def whoami(self):
#     def _main(self):
#     def __init__(self, application, auth, xml_data):
#     def __str__(self):
#     def request(self):
#     def _main(self):
#     def __init__(self, application, code):
#     def __str__(self):
#     def error(self):
#     def _main(self):


import unittest
    import xml.etree.cElementTree as ET
    import xml.etree.ElementTree as ET
from oaxmlapi import connections
# -*- coding: utf-8
from __future__ import absolute_import

try:
except ImportError:


class TestAuthClass(unittest.TestCase):

    def test_str(self):
        self.assertEqual(
            str(connections.Auth('company', 'username', 'p@ssw0rd')),
            '<Auth company=company username=username>'
        )

    def test_auth(self):
        self.assertIsInstance(

# Path: oaxmlapi/connections.py
# class Application(object):
# class Auth(_Base):
# class RemoteAuth(_Base):
# class Whoami(_Base):
# class Request(_Base):
# class Error(_Base):
#     def __init__(self, client, client_version, namespace, key):
#     def __str__(self):
#     def __init__(self, company, username, password):
#     def __str__(self):
#     def auth(self):
#     def _main(self):
#     def __init__(self, company, username, password):
#     def __str__(self):
#     def remoteauth(self):
#     def _main(self):
#     def __init__(self, datatype):
#     def __str__(self):
#     def datatype(self):
#     def datatype(self, d):
#     def whoami(self):
#     def _main(self):
#     def __init__(self, application, auth, xml_data):
#     def __str__(self):
#     def request(self):
#     def _main(self):
#     def __init__(self, application, code):
#     def __str__(self):
#     def error(self):
#     def _main(self):


# Path: tests/connections/test_auth.py
import unittest
    import xml.etree.cElementTree as ET
    import xml.etree.ElementTree as ET
from oaxmlapi import connections

# -*- coding: utf-8
from __future__ import absolute_import

try:
except ImportError:


class TestAuthClass(unittest.TestCase):

    def test_str(self):
        self.assertEqual(
            str(connections.Auth('company', 'username', 'p@ssw0rd')),
            '<Auth company=company username=username>'
        )

    def test_auth(self):
        self.assertIsInstance(

            connections.Auth('company', 'username', 'p@ssw0rd').auth(),