Skip to content

Instantly share code, notes, and snippets.

@nixeagle
Created July 11, 2010 01:13
Show Gist options
  • Save nixeagle/471181 to your computer and use it in GitHub Desktop.
Save nixeagle/471181 to your computer and use it in GitHub Desktop.
import unittest
import q
class TestQueue(unittest.TestCase):
def test_get_length(self):
q = queue.queue_class()
self.assertEqual(0, q.get_length())
q.raw('stuff')
self.assertEqual(1, q.get_length())
if __name__ == '__main__':
unittest.main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment