Skip to content

Instantly share code, notes, and snippets.

@eungju
Created September 9, 2009 06:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eungju/183509 to your computer and use it in GitHub Desktop.
Save eungju/183509 to your computer and use it in GitHub Desktop.
import unittest
def has_branch(tree):
return False
class DepthTest(unittest.TestCase):
#I guess, testing existence of branches might be useful to calculate the depth of tree.
def test_has_branch(self):
tree = []
self.assertFalse(has_branch(tree))
unittest.main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment