File: test_agent.py

package info (click to toggle)
python-agent-py 0.0.23-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 112 kB
  • sloc: python: 397; makefile: 6
file content (17 lines) | stat: -rw-r--r-- 446 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""Tests to verify the agent module."""

import unittest

from agent import a


class TestAgent(unittest.TestCase):
    """Tests to verify the Agent class."""

    def test_build_server_url_no_trailing_slash(self):
        """Verifies that server_url is correct with a trailing slash."""
        host = 'http://agent.com:8090'
        self.assertEqual(
            'http://agent.com/agent/',
            a.Agent._build_server_url(host)
        )