'When creating new vblocks, different ordering of blocks produces
different records in the database.'

def test_ordering_matters(self):

    stored_vblocks = self._create_block_record_list([self.record_a, self.record_b])
    repeat_vblocks = self._create_block_record_list([self.record_b, self.record_a])
    same_order_vblocks = self._create_block_record_list([self.record_a, self.record_b])
    new_vblocks = self._create_block_record_list([self.record_b])
    self.assertNotEqual(stored_vblocks.pk, repeat_vblocks.pk)
    self.assertNotEqual(stored_vblocks.hashed, repeat_vblocks.hashed)
    self.assertEqual(stored_vblocks.pk, same_order_vblocks.pk)
    self.assertEqual(stored_vblocks.hashed, same_order_vblocks.hashed)
    self.assertNotEqual(stored_vblocks.pk, new_vblocks.pk)
    self.assertNotEqual(stored_vblocks.hashed, new_vblocks.hashed)
