'Assert that member is in container if and only if predicate is true.
Arguments:
member - any object
container - any container
predicate - an expression, tested for truthiness'

def assert_in_iff(self, member, container, predicate):

    if predicate:
        self.assertIn(member, container)
    else:
        self.assertNotIn(member, container)
