コード例 #1
0
ファイル: activity.py プロジェクト: atefzed/Feedly
 def entity_ids(self):
     return make_list_unique([a.extra_context.get('entity_id') for a in self.activities])
コード例 #2
0
ファイル: activity.py プロジェクト: atefzed/Feedly
 def actor_ids(self):
     return make_list_unique([a.actor_id for a in self.activities])
コード例 #3
0
ファイル: activity.py プロジェクト: atefzed/Feedly
 def object_ids(self):
     return make_list_unique([a.object_id for a in self.activities])
コード例 #4
0
ファイル: activity.py プロジェクト: loyning/Feedly
 def object_ids(self):
     return make_list_unique([a.object_id for a in self.activities])
コード例 #5
0
ファイル: activity.py プロジェクト: atefzed/Feedly
 def verbs(self):
     return make_list_unique([a.verb for a in self.activities])
コード例 #6
0
ファイル: activity.py プロジェクト: loyning/Feedly
 def verbs(self):
     return make_list_unique([a.verb for a in self.activities])
コード例 #7
0
ファイル: activity.py プロジェクト: loyning/Feedly
 def actor_ids(self):
     return make_list_unique([a.actor_id for a in self.activities])
コード例 #8
0
ファイル: utils_test.py プロジェクト: AmmsA/Stream-Framework
 def test_make_list_unique_marker(self):
     with_doubles = range(10) + range(5, 15)
     marker = lambda x: x / 5
     result = make_list_unique(with_doubles, marker)
     assert result == [0, 5, 10]
コード例 #9
0
ファイル: utils_test.py プロジェクト: AmmsA/Stream-Framework
 def test_make_list_unique(self):
     with_doubles = range(10) + range(5, 15)
     result = make_list_unique(with_doubles)
     assert result == range(15)
コード例 #10
0
 def test_make_list_unique_marker(self):
     with_doubles = range(10) + range(5, 15)
     marker = lambda x: x / 5
     result = make_list_unique(with_doubles, marker)
     assert result == [0, 5, 10]
コード例 #11
0
 def test_make_list_unique(self):
     with_doubles = range(10) + range(5, 15)
     result = make_list_unique(with_doubles)
     assert result == range(15)
コード例 #12
0
 def entity_ids(self):
     return make_list_unique(
         [a.extra_context.get('entity_id') for a in self.activities])