def test_2(): m = random.choice(range(1,10)) e = random.choice(range(4)) n = m*10**e l = list(range(n)) random.shuffle(l) assert mad.median(l) in l
def test_1(): assert 2 == mad.median([1,2,3])