Lines 31-43
Link Here
|
31 |
def test(): |
31 |
def test(): |
32 |
import bottle.ext.doesnotexist |
32 |
import bottle.ext.doesnotexist |
33 |
self.assertRaises(ImportError, test) |
33 |
self.assertRaises(ImportError, test) |
34 |
|
|
|
35 |
def test_ext_isfile(self): |
36 |
''' The virtual module needs a valid __file__ attribute. |
37 |
If not, the Google app engine development server crashes on windows. |
38 |
''' |
39 |
from bottle import ext |
40 |
self.assertTrue(os.path.isfile(ext.__file__)) |
41 |
|
34 |
|
42 |
if __name__ == '__main__': #pragma: no cover |
35 |
if __name__ == '__main__': #pragma: no cover |
43 |
unittest.main() |
36 |
unittest.main() |