def test_random_datetimes(): datetimes = ['07/15/2019', '07/24/2019', '07/23/2019', '07/22/2019', '07/21/2019', '07/22/2019', '07/23/2019', '07/24/2019', '07/23/2019', '07/22/2019', '07/15/2019'] attr = Attribute(datetimes, name='Date') randoms = attr.random() assert len(randoms) == len(datetimes)
def test_random_strings(): strings = list(map(lambda x: randomize_string(5), range(size))) attr = Attribute(Series(strings, name='String')) randoms = attr.random() assert len(randoms) == size
def test_random_ints(): ints = [3, 5, 7, 8, 7, 1, 10, 30, 16, 19] attr = Attribute(ints, name='Integer') randoms = attr.random() assert len(randoms) == len(ints)