#!/usr/bin/env python
# encoding: utf-8
"""
test_pttrx.py

Created by Stephen Thorne on 2007-03-26.
"""

import sys, os
sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))

import unittest
import pttrx

class test_pttrx(unittest.TestCase):
	def test_queueFull(self):
	    ao = pttrx.AudioOutput()
	    for x in range(200):
	        ao.feed('\0'*800)
	    self.assertEquals(ao.q.qsize(), 100)


if __name__ == '__main__':

    unittest.main()