# Path: djangolg/events.py
# EVENT_START = 0
# EVENT_QUERY_ACCEPT = 1
# EVENT_QUERY_REJECT = 2
# EVENT_QUERY_INVALID = 3
# EVENT_QUERY_FAILED = 4
# EVENT_QUERY_ERROR = 5
# EVENT_CHOICES = (
#     (EVENT_START, "Session Started"),
#     (EVENT_QUERY_ACCEPT, "Query Authorised"),
#     (EVENT_QUERY_REJECT, "Query Rejected"),
#     (EVENT_QUERY_INVALID, "Invalid Query"),
#     (EVENT_QUERY_FAILED, "Query Execution Failed"),
#     (EVENT_QUERY_ERROR, "Unhandled Error")
# )
# 
# Path: djangolg/models.py
# class Router(models.Model):
# class Location(models.Model):
# class Credential(models.Model):
# class Log(models.Model):
#     def label(self):
#     def __str__(self):
#     def __unicode__(self):
#     def __str__(self):
#     def __unicode__(self):
#     def __str__(self):
#     def __unicode__(self):
#     def __str__(self):
#     def __unicode__(self):
#     CRED_TYPE_PASSWD = 0
#     CRED_TYPE_PUBKEY = 1
#     CRED_TYPE_CHOICES = (
#         (CRED_TYPE_PASSWD, "Password"),
#         (CRED_TYPE_PUBKEY, "Public Key"),
#     )


from django.test import TestCase
from djangolg import events, models
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
"""Model test classes for djangolg."""

from __future__ import print_function
from __future__ import unicode_literals




class ModelTestCase(TestCase):
    """Test djangolg models."""

    def setUp(self):
        """Create the necessary objects."""
        credentials = models.Credential.objects.create(
            name="test-credentials", type=models.Credential.CRED_TYPE_PASSWD,
            username="test", password="test"
        )
        location = models.Location.objects.create(
            name="test-location", sitecode="test01"
        )
        router = models.Router.objects.create(
            hostname="test-router", dialect="ios",
            location=location, credentials=credentials
        )

# Path: djangolg/events.py
# EVENT_START = 0
# EVENT_QUERY_ACCEPT = 1
# EVENT_QUERY_REJECT = 2
# EVENT_QUERY_INVALID = 3
# EVENT_QUERY_FAILED = 4
# EVENT_QUERY_ERROR = 5
# EVENT_CHOICES = (
#     (EVENT_START, "Session Started"),
#     (EVENT_QUERY_ACCEPT, "Query Authorised"),
#     (EVENT_QUERY_REJECT, "Query Rejected"),
#     (EVENT_QUERY_INVALID, "Invalid Query"),
#     (EVENT_QUERY_FAILED, "Query Execution Failed"),
#     (EVENT_QUERY_ERROR, "Unhandled Error")
# )
# 
# Path: djangolg/models.py
# class Router(models.Model):
# class Location(models.Model):
# class Credential(models.Model):
# class Log(models.Model):
#     def label(self):
#     def __str__(self):
#     def __unicode__(self):
#     def __str__(self):
#     def __unicode__(self):
#     def __str__(self):
#     def __unicode__(self):
#     def __str__(self):
#     def __unicode__(self):
#     CRED_TYPE_PASSWD = 0
#     CRED_TYPE_PUBKEY = 1
#     CRED_TYPE_CHOICES = (
#         (CRED_TYPE_PASSWD, "Password"),
#         (CRED_TYPE_PUBKEY, "Public Key"),
#     )


# Path: tests/test_models.py
from django.test import TestCase
from djangolg import events, models

#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
"""Model test classes for djangolg."""

from __future__ import print_function
from __future__ import unicode_literals




class ModelTestCase(TestCase):
    """Test djangolg models."""

    def setUp(self):
        """Create the necessary objects."""
        credentials = models.Credential.objects.create(
            name="test-credentials", type=models.Credential.CRED_TYPE_PASSWD,
            username="test", password="test"
        )
        location = models.Location.objects.create(
            name="test-location", sitecode="test01"
        )
        router = models.Router.objects.create(
            hostname="test-router", dialect="ios",
            location=location, credentials=credentials
        )

        models.Log.objects.create(