Coverage for tests/test_functions.py: 46%
Shortcuts on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1import unittest
3import astshim as ast
6class TestFunctions(unittest.TestCase):
8 """Test free functions"""
10 def test_escape(self):
11 self.assertFalse(ast.escapes())
12 self.assertFalse(ast.escapes(1))
13 self.assertTrue(ast.escapes(-1))
14 self.assertTrue(ast.escapes(0))
15 self.assertFalse(ast.escapes())
18if __name__ == "__main__": 18 ↛ 19line 18 didn't jump to line 19, because the condition on line 18 was never true
19 unittest.main()