def test_get_delta(self): deltas = pre_process.read_deltas("delta_test.input") delta = pre_process.get_delta(deltas, "a37abfb", "d3867bf") self.assertEqual( "src/java/voldemort/store/readonly/JsonStoreBuilder.java", delta.totalDelta[0].fileName) delta = pre_process.get_delta( deltas, "516bc3a", "xxx") self.assertIsNone( delta )
def test_read_deltas(self): deltas = pre_process.read_deltas("delta_test.input") self.assertEqual( 3, len(deltas)) self.assertEqual( "a37abfb", deltas[1].parentID ) self.assertEqual( "67443e6", deltas[2].childID )