(self)
| 876 | self.assertIsInstance(self.router.resources(), Container) |
| 877 | |
| 878 | def test_static_route_user_home(self): |
| 879 | here = pathlib.Path(aiohttp.__file__).parent |
| 880 | home = pathlib.Path(os.path.expanduser('~')) |
| 881 | if not str(here).startswith(str(home)): # pragma: no cover |
| 882 | self.skipTest("aiohttp folder is not placed in user's HOME") |
| 883 | static_dir = '~/' + str(here.relative_to(home)) |
| 884 | route = self.router.add_static('/st', static_dir) |
| 885 | self.assertEqual(here, route.get_info()['directory']) |
| 886 | |
| 887 | def test_static_route_points_to_file(self): |
| 888 | here = pathlib.Path(aiohttp.__file__).parent / '__init__.py' |
nothing calls this directly
no test coverage detected