def check_total(total, expected):
    assert (total == expected, "totals differ")  # cotterpin:expect
    assert (total > 0,)  # cotterpin:expect


class Invariant:
    def holds(self, value):
        assert (value is not None, "value missing")  # cotterpin:expect
        return True
