예제 #1
0
 def test_dumps_public_collection(self, dump_collection):
     dump_collections([81721])
     assert dump_collection.called
예제 #2
0
 def test_doesnt_dump_public_collection(self, dump_collection):
     collection = self.get_collection()
     collection.update(is_public=False)
     dump_collections([81721])
     assert not dump_collection.called
예제 #3
0
 def test_dump_collections(self):
     filename = dump_collections([81721])[0]
     collection_json = json.load(open(filename, 'r'))
     eq_(collection_json['id'], 81721)
     eq_(collection_json['slug'], 'public-apps')