tests/basics/builtin_dir: Add test for dir() of a type.

This commit is contained in:
Damien George 2016-12-20 14:08:27 +11:00
parent 49bf7617d0
commit d291007fea
1 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,9 @@ print('__name__' in dir())
import sys
print('platform' in dir(sys))
# dir of type
print('append' in dir(list))
class Foo:
def __init__(self):
self.x = 1