def check(): views._sync_db_and_registry(qs, amo.FIREFOX.id) registry_len = len(registry) assert registry_len assert qs.count() == registry_len modules = qs.values_list('module', flat=True) assert set(modules) == set(registry.keys())
def check(): views._sync_db_and_registry(qs, 1) assert qs.count() == len(registry) modules = qs.values_list('module', flat=True) assert set(modules) == set(registry.keys())