Skip to content

Commit

Permalink
Add a test for get_id() (GH-21370)
Browse files Browse the repository at this point in the history
  • Loading branch information
nanjekyejoannah authored Jul 8, 2020
1 parent 10772ec commit 6f13adf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Lib/test/test_symtable.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ def test_type(self):
self.assertEqual(self.spam.get_type(), "function")
self.assertEqual(self.internal.get_type(), "function")

def test_id(self):
self.assertGreater(self.top.get_id(), 0)
self.assertGreater(self.Mine.get_id(), 0)
self.assertGreater(self.a_method.get_id(), 0)
self.assertGreater(self.spam.get_id(), 0)
self.assertGreater(self.internal.get_id(), 0)

def test_optimized(self):
self.assertFalse(self.top.is_optimized())

Expand Down

0 comments on commit 6f13adf

Please sign in to comment.