# Path: chirp/common/http.py
# _GET_REQUEST = """GET %(path)s HTTP/1.1
# User-Agent: chirp.common.http
# Host: %(host)s:%(port)d
# Accept: */*
# Connection: close
# 
# """.replace("\n", "\r\n")
# _READ_SIZE = 4096
# def get_with_timeout(host, port, path, timeout_s):
# 
# Path: chirp/stream/barix.py
# def _remove_tags(html_str):
#     def __init__(self, host, port):
#     def ping(self):
# _CLIENT_RE = re.compile("(\d+\.\d+\.\d+\.\d+):src port (\d+) :dst port (\d+)")
#     TIMEOUT_S = 1.0
# class Barix(object):


import unittest
from chirp.common import http
from chirp.stream import barix


class RemoveTagsTestCase(unittest.TestCase):

    def test_basic(self):
        self.assertEqual("foo bar",
                         barix._remove_tags("foo bar"))
        self.assertEqual("foo bar baz",

# Path: chirp/common/http.py
# _GET_REQUEST = """GET %(path)s HTTP/1.1
# User-Agent: chirp.common.http
# Host: %(host)s:%(port)d
# Accept: */*
# Connection: close
# 
# """.replace("\n", "\r\n")
# _READ_SIZE = 4096
# def get_with_timeout(host, port, path, timeout_s):
# 
# Path: chirp/stream/barix.py
# def _remove_tags(html_str):
#     def __init__(self, host, port):
#     def ping(self):
# _CLIENT_RE = re.compile("(\d+\.\d+\.\d+\.\d+):src port (\d+) :dst port (\d+)")
#     TIMEOUT_S = 1.0
# class Barix(object):


# Path: chirp/stream/barix_test.py
import unittest
from chirp.common import http
from chirp.stream import barix



class RemoveTagsTestCase(unittest.TestCase):

    def test_basic(self):
        self.assertEqual("foo bar",
                         barix._remove_tags("foo bar"))
        self.assertEqual("foo bar baz",

                         barix._remove_tags("foo <tag>bar</tag> baz"))