anchor.diff:      % 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}}),
  +                                                version_tuple(ExistingVersion)}),
       ?assertEqual(ExistingVersion#chef_cookbook_version{checksums = []}, Existing#chef_cookbook_version{checksums = []}),
       ?assertEqual(NormalizedExistingChecksums, lists:sort(Existing#chef_cookbook_version.checksums)),
   
  
positive.code: 
      ?assertEqual(not_found, chef_sql:fetch_cookbook_version(Got#chef_cookbook_version.org_id,
                                                              {Got#chef_cookbook_version.name,
                                                               {Got#chef_cookbook_version.major,
                                                                Got#chef_cookbook_version.minor,
                                                                Got#chef_cookbook_version.patch}})),
  
      %% Ensure the checksums don't exist in the checksum table
      ?assertEqual(false, checksum_exists(Got#chef_cookbook_version.org_id, Checksum1)),
  
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() ->
  