@@ -0,0 +1,565 @@
+from nose.tools import assert_true, assert_not_equal%0Aimport tempfile%0Aimport filecmp%0Aimport shutil%0Afrom datajoint import attach%0Aimport os%0A%0Adef test_attach():%0A    %22%22%22%0A    test%0A    %22%22%22%0A    attach_file = 'schema.py'%0A    folder = tempfile.mkdtemp()%0A    source_file = os.path.join(folder, attach_file)%0A    shutil.copy(attach_file, source_file)%0A    buffer = attach.load(source_file)%0A    download_file = attach.save(buffer, folder)%0A    assert_true(filecmp.cmp(download_file, source_file))%0A    assert_not_equal(os.path.basename(attach_file), os.path.basename(download_file))

add test for attachment methods