本文整理匯總了Python中auvsi_suas.models.UasTelemetry.dedupe方法的典型用法代碼示例。如果您正苦於以下問題:Python UasTelemetry.dedupe方法的具體用法?Python UasTelemetry.dedupe怎麽用?Python UasTelemetry.dedupe使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類auvsi_suas.models.UasTelemetry
的用法示例。
在下文中一共展示了UasTelemetry.dedupe方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_duplicates
# 需要導入模塊: from auvsi_suas.models import UasTelemetry [as 別名]
# 或者: from auvsi_suas.models.UasTelemetry import dedupe [as 別名]
def test_duplicates(self):
orig = [self.log1, self.log1, self.log2, self.log3, self.log3,
self.log4, self.log4]
expect = [self.log1, self.log2, self.log3, self.log4]
self.assertEqual(UasTelemetry.dedupe(orig), expect)
示例2: test_no_duplicates
# 需要導入模塊: from auvsi_suas.models import UasTelemetry [as 別名]
# 或者: from auvsi_suas.models.UasTelemetry import dedupe [as 別名]
def test_no_duplicates(self):
"""Tests no duplicates in list."""
orig = [self.log1, self.log2, self.log3, self.log4]
self.assertEqual(UasTelemetry.dedupe(orig), orig)
示例3: test_boundary_duplicates
# 需要導入模塊: from auvsi_suas.models import UasTelemetry [as 別名]
# 或者: from auvsi_suas.models.UasTelemetry import dedupe [as 別名]
def test_boundary_duplicates(self):
"""Tests duplicates on the bounds of the list."""
orig = [self.log1, self.log1, self.log2, self.log2, self.log2]
expect = [self.log1, self.log2]
self.assertEqual(UasTelemetry.dedupe(orig), expect)
示例4: test_no_logs
# 需要導入模塊: from auvsi_suas.models import UasTelemetry [as 別名]
# 或者: from auvsi_suas.models.UasTelemetry import dedupe [as 別名]
def test_no_logs(self):
"""Tests empty log."""
self.assertEqual(UasTelemetry.dedupe([]), [])