Пример #1
0
 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
Пример #2
0
 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
Пример #3
0
 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