def test_drop_recompute(self): a = NullDROP("a", "a") a.reproducibility_level = ReproducibilityFlags.RECOMPUTE a.setCompleted() self.assertEqual(a.generate_merkle_data(), {"status": DROPStates.COMPLETED}) self.assertIsNotNone(a.merkleroot) pass
def test_drop_reproduce(self): a = NullDROP("a", "a") a.reproducibility_level = ReproducibilityFlags.REPRODUCE a.setCompleted() self.assertEqual(a.generate_merkle_data(), {}) self.assertIsNone(a.merkleroot) pass
def test_drop_repeat(self): a = NullDROP('a', 'a') a.reproducibility_level = ReproducibilityFlags.REPEAT a.setCompleted() self.assertEqual(a.generate_merkle_data(), {'status': DROPStates.COMPLETED}) self.assertIsNotNone(a.merkleroot) pass