'Compare an app\'s set of required features against a `dict` of expected
values.'

def compare_features(self, data, version=None):

    if (not version):
        version = self.get_webapp().current_version
    features = version.features
    for (k, v) in data.iteritems():
        val = getattr(features, k)
        if callable(val):
            val = val()
        eq_(unicode(val), unicode(v))
