anchor.diff:          {
               [attachments],
               #doc{atts = [
  -                #att{
  -                    name = <<"stuff.txt">>,
  -                    type = <<"text/plain">>,
  -                    data = fun() -> <<"diet pepsi">> end,
  -                    revpos = 1,
  -                    att_len = 10,
  -                    disk_len = 10
  -                },
  -                #att{
  -                    name = <<"food.now">>,
  -                    type = <<"application/food">>,
  -                    revpos = 1,
  -                    data = <<"sammich">>
  -                }
  +                couch_att:new([
  +                    {name, <<"stuff.txt">>},
  +                    {type, <<"text/plain">>},
  +                    {data, fun() -> <<"diet pepsi">> end},
  +                    {revpos, 1},
  +                    {att_len, 10},
  +                    {disk_len, 10}
  +                ]),
  +                couch_att:new([
  +                    {name, <<"food.now">>},
  +                    {type, <<"application/food">>},
  +                    {revpos, 1},
  +                    {data, <<"sammich">>}
  +                ])
               ]},
               {[
                   {<<"_id">>, <<>>},
  
positive.code:         },
          {
              #doc{atts = [
                  #att{
                      name = <<"big.xml">>,
                      type = <<"xml/sucks">>,
                      data = fun() -> ok end,
                      revpos = 1,
                      att_len = 400,
                      disk_len = 400
                  },
                  #att{
                      name = <<"fast.json">>,
                      type = <<"json/ftw">>,
                      data = <<"{\"so\": \"there!\"}">>,
                      revpos = 1,
                      att_len = 16,
                      disk_len = 16
                  }
              ]},
              {[
                   {<<"_id">>, <<>>},
  
negative.code: -include_lib("couch/include/couch_db.hrl").
  
  
  json_doc_test_() ->
      {
          setup,
          fun() -> test_util:start(?MODULE) end, fun test_util:stop/1,
          [
              {
                  "Document from JSON",
  