def test_copy_file_into_working_dir():
    home = Folder('home')
    lab10 = File(home, 'lab10', 'py', 100)
    assert len(home.content) == 1
    lab10.copy(home, 'lab10_copy')
    if_copy_exists = True if len(home.content) == 2 else False
    assert if_copy_exists is True
    assert home.content[1].name == 'lab10_copy'
    assert home.content[1].size == lab10.size
    assert home.content[1]._type == lab10._type
def test_copy_file_to_another_dir():
    home = Folder('home')
    new_folder = Folder('new_folder')
    lab10 = File(home, 'lab10', 'py', 100)
    assert len(new_folder.content) == 0
    lab10.copy(new_folder, 'lab10_copy')
    if_copy_exists = True if len(new_folder.content) == 1 else False
    assert if_copy_exists is True
    assert new_folder.content[0].name == 'lab10_copy'
    assert new_folder.content[0].size == lab10.size
    assert new_folder.content[0]._type == lab10._type