# Path: lighthouse/haproxy/stanzas/stats.py
# class StatsStanza(Stanza):
#     """
#     Stanza subclass representing a "listen" stanza specifically for the
#     HAProxy stats feature.
# 
#     Takes an optional uri parameter that defaults to the root uri.
#     """
# 
#     def __init__(self, port, uri="/"):
#         super(StatsStanza, self).__init__("listen")
#         self.header = "listen stats :" + str(port)
# 
#         self.add_lines([
#             "mode http",
#             "stats enable",
#             "stats uri " + uri,
#         ])


    import unittest2 as unittest
    import unittest
from lighthouse.haproxy.stanzas.stats import StatsStanza
try:
except ImportError:



class StatsStanzaTests(unittest.TestCase):

    def test_default_uri(self):

# Path: lighthouse/haproxy/stanzas/stats.py
# class StatsStanza(Stanza):
#     """
#     Stanza subclass representing a "listen" stanza specifically for the
#     HAProxy stats feature.
# 
#     Takes an optional uri parameter that defaults to the root uri.
#     """
# 
#     def __init__(self, port, uri="/"):
#         super(StatsStanza, self).__init__("listen")
#         self.header = "listen stats :" + str(port)
# 
#         self.add_lines([
#             "mode http",
#             "stats enable",
#             "stats uri " + uri,
#         ])


# Path: tests/haproxy/stanzas/stats_tests.py
    import unittest2 as unittest
    import unittest
from lighthouse.haproxy.stanzas.stats import StatsStanza

try:
except ImportError:



class StatsStanzaTests(unittest.TestCase):

    def test_default_uri(self):

        stanza = StatsStanza(9000)