本文整理汇总了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([]), [])