anchor.diff:      Expected = {cookbook_exists, CookbookVersion0#chef_cookbook_version.authz_id},
       Got = chef_sql:fetch_cookbook_version(CookbookVersion#chef_cookbook_version.org_id,
                                             {CookbookVersion#chef_cookbook_version.name,
  -                                           {CookbookVersion#chef_cookbook_version.major,
  -                                            CookbookVersion#chef_cookbook_version.minor,
  -                                            CookbookVersion#chef_cookbook_version.patch}}),
  +                                           version_tuple(CookbookVersion)}),
       ?assertEqual(Expected, Got).
   
   fetch_cookbook_versions() ->
  
positive.code:     % A cookbook version should already exist in the datastore
      Existing = chef_sql:fetch_cookbook_version(ExistingVersion#chef_cookbook_version.org_id,
                                                 {ExistingVersion#chef_cookbook_version.name,
                                                   {ExistingVersion#chef_cookbook_version.major,
                                                     ExistingVersion#chef_cookbook_version.minor,
                                                     ExistingVersion#chef_cookbook_version.patch}}),
      ?assertEqual(ExistingVersion#chef_cookbook_version{checksums = []}, Existing#chef_cookbook_version{checksums = []}),
      ?assertEqual(NormalizedExistingChecksums, lists:sort(Existing#chef_cookbook_version.checksums)),
  
  
negative.code: 
      Got = chef_sql:fetch_cookbook_version(CookbookVersion#chef_cookbook_version.org_id,
                                            {CookbookVersion#chef_cookbook_version.name,
                                             version_tuple(CookbookVersion)}),
      ?assertEqual(not_found, Got).
  
  fetch_cookbook_version_no_checksums() ->
  