def test_uuid_reproducibility(self): from dallinger.experiment import Experiment exp = Experiment() random.seed(1) exp_uuid1 = exp.make_uuid() exp_uuid2 = exp.make_uuid() random.seed(1) exp_uuid3 = exp.make_uuid() assert exp_uuid1 != exp_uuid2 assert exp_uuid1 == exp_uuid3
def exp(self): from dallinger.experiment import Experiment return Experiment()
def test_uuid_instance(self): from dallinger.experiment import Experiment exp = Experiment() exp_uuid = exp.make_uuid() assert isinstance(UUID(exp_uuid, version=4), UUID)