Hide keyboard shortcuts

Hot-keys 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

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

import unittest 

 

import astshim as ast 

 

 

class TestFunctions(unittest.TestCase): 

 

"""Test free functions""" 

 

def test_escape(self): 

self.assertFalse(ast.escapes()) 

self.assertFalse(ast.escapes(1)) 

self.assertTrue(ast.escapes(-1)) 

self.assertTrue(ast.escapes(0)) 

self.assertFalse(ast.escapes()) 

 

 

18 ↛ 19line 18 didn't jump to line 19, because the condition on line 18 was never trueif __name__ == "__main__": 

unittest.main()