Skip to content

Commit

Permalink
Test output of see when called with a function
Browse files Browse the repository at this point in the history
  • Loading branch information
Liam Cooke committed May 18, 2017
1 parent 90f0aa1 commit e1ab632
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_see_result.py
Expand Up @@ -88,3 +88,13 @@ def test_float(self):

self.check_ops('float literal', lit_ops, lit_see)
self.check_ops('float object', obj_ops, obj_see)

def test_isfunction(self):

def a_function():
pass

output = see.see(a_function)

self.assertIn('isfunction', output)
self.assertIn('()', output)

0 comments on commit e1ab632

Please sign in to comment.