(self)
| 4925 | return self.get_entry(os.path.basename(filename)) |
| 4926 | |
| 4927 | def test_current_directory(self): |
| 4928 | filename = self.create_file() |
| 4929 | old_dir = os.getcwd() |
| 4930 | try: |
| 4931 | os.chdir(self.path) |
| 4932 | |
| 4933 | # call scandir() without parameter: it must list the content |
| 4934 | # of the current directory |
| 4935 | entries = dict((entry.name, entry) for entry in os.scandir()) |
| 4936 | self.assertEqual(sorted(entries.keys()), |
| 4937 | [os.path.basename(filename)]) |
| 4938 | finally: |
| 4939 | os.chdir(old_dir) |
| 4940 | |
| 4941 | def test_repr(self): |
| 4942 | entry = self.create_file_entry() |
nothing calls this directly
no test coverage detected