wouldn't it be nice if you didn't need to remember all the assert methods for TestCase? :)

Again, you would only need bare asserts here (which would also help in readability). So these assertions would look like

    assert isinstance(octet, int)
    assert octet >= 0
    assert octet <= 250