from pyfakefs import fake_filesystem
from .dirsize import dirsize


def test_chdir(fs):
    os_module = fake_filesystem.FakeOsModule(fs)

    fs.CreateDirectory('/folder')
    fs.CreateFile('/folder/file1', contents='0123456789')
    fs.CreateFile('/folder/file2', contents='0123456789')
    fs.CreateFile('/folder/file3', contents='0123456789')
    fs.CreateFile('/folder/file4', contents='0123456789')
    fs.CreateFile('/folder/file5', contents='0123456789')

    print(dirsize('/folder'))

add dirsize tests