示例#1
0
 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())
示例#2
0
 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())
示例#3
0
 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())
示例#4
0
 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())