For some tests I like to ensure that os.listdir returns the directory contents in a certain order (to check if my code actually sorts returned items). Currently FakeDirectory uses {} which also does not guarantee any ordering so my tests often work - but not always.
My workaround is to replace .byte_contents with an OrderedDict manually so items would be returned in the order of insertion. Is that something you could add to PyFakeFS directly?