def test_eq(self): support_is_tracking1 = IsTrackingMixin() support_is_tracking2 = IsTrackingMixin() support_is_tracking3 = IsTrackingMixin(True) assert support_is_tracking1 == support_is_tracking2 assert support_is_tracking1 != support_is_tracking3
def __init__(self, is_tracking: bool = False) -> None: SubcatalogBase.__init__(self) IsTrackingMixin.__init__(self, is_tracking)
def test_dumps(self, is_tracking_data): support_is_tracking = IsTrackingMixin(is_tracking_data) assert (support_is_tracking._dumps() == { "isTracking": is_tracking_data }) == is_tracking_data
def test_loads(self, is_tracking_data): support_is_tracking = IsTrackingMixin() support_is_tracking._loads(contents={"isTracking": is_tracking_data}) assert support_is_tracking.is_tracking == is_tracking_data
def test_init(self): assert IsTrackingMixin().is_tracking == False assert IsTrackingMixin(True).is_tracking == True
def __init__(self, is_tracking: bool = False, is_beizer_curve: bool = False) -> None: SubcatalogBase.__init__(self) IsTrackingMixin.__init__(self, is_tracking) self.is_beizer_curve = is_beizer_curve
def __init__(self, is_tracking: bool = False) -> None: SubcatalogBase.__init__(self) IsTrackingMixin.__init__(self, is_tracking) self._keypoints: List[KeypointsInfo] = []