tests: add basic sequential cut off tests
This commit is contained in:
@@ -34,9 +34,9 @@ class SeqCutOffPolicy(Enum):
|
||||
|
||||
@classmethod
|
||||
def from_name(cls, name):
|
||||
for policy, policy_name in SeqCutOffPolicy.__members__.items():
|
||||
if name == policy:
|
||||
return policy_name
|
||||
for policy_name, policy in SeqCutOffPolicy.__members__.items():
|
||||
if name == policy_name:
|
||||
return policy
|
||||
|
||||
raise ValueError(f"{name} is not a valid sequential cut off name")
|
||||
|
||||
|
@@ -17,7 +17,8 @@ class CoreStatus(Enum):
|
||||
detached = 3
|
||||
|
||||
|
||||
SEQ_CUTOFF_THRESHOLD_MAX = 4194181
|
||||
SEQ_CUTOFF_THRESHOLD_MAX = Size(4194181, Unit.KibiByte)
|
||||
SEQ_CUT_OFF_THRESHOLD_DEFAULT = Size(1, Unit.MebiByte)
|
||||
|
||||
|
||||
class Core(Device):
|
||||
|
Reference in New Issue
Block a user