2008-08-16 23:26:59 +08:00
|
|
|
|
|
|
|
import py
|
|
|
|
|
|
|
|
def test_os():
|
|
|
|
import os
|
|
|
|
assert py.std.os is os
|
|
|
|
|
|
|
|
def test_import_error_converts_to_attributeerror():
|
2009-05-08 01:07:22 +08:00
|
|
|
py.test.raises(AttributeError, "py.std.xyzalskdj")
|
2008-08-16 23:26:59 +08:00
|
|
|
|
|
|
|
def test_std_gets_it():
|
|
|
|
for x in py.std.sys.modules:
|
|
|
|
assert x in py.std.__dict__
|