'Verifies that the field values and serialized data
on the given bsm are as expected.'

def _assert_bsm_fields(self, bsm, expected_serialized_data):

    for (field_name, field_value) in self.params.iteritems():
        self.assertEqual(field_value, getattr(bsm, field_name))
    self.assertEqual(bsm.get_serialized_data(), expected_serialized_data)
    self.assertIn(_directory_name(self.usage_key), bsm.data.name)
