I would probably write this as `assert_true(self.lower < ts < self.upper)`.