added tests checking attachments deleting
flake8 ready
Merge pull request #406 from xliiv/attachments-tests2

added tests checking attachments deleting