'Assert that `video` has the correct attributes. `attrs` is a map of {metadata_field: value}.'

def assert_attributes_equal(self, video, attrs):

    for (key, value) in attrs.items():
        self.assertEquals(getattr(video, key), value)
