added test to ensure reject happens on not empty list
@@ -17,14 +17,19 @@ def make_tracker():
def test_error_with_no_state_root_track_uncommitted(make_tracker):
with pytest.raises(AttributeError):
- make_tracker.track_uncommitted("", 12)
+ make_tracker.track("", 12)
def test_error_with_invalid_ledger_size(make_tracker, state_root):
with pytest.raises(AttributeError):
- make_tracker.track_uncommitted(state_root, random.randint(-99, 0))
+ make_tracker.track(state_root, random.randint(-99, 0))
def test_error_with_only_one_size_tuple(make_tracker):
with pytest.raises(AttributeError):
- make_tracker.track_uncommitted(state_root, random.randint(1, 99))
+ make_tracker.track(state_root, random.randint(1, 99))
+
+
+def test_error_with_revert_empty_tracker(make_tracker):
+ with pytest.raises(AttributeError):
+ make_tracker.reject_batch()
