def testAddEntry(self): manifest = Manifest(TestManifest.entries) newEntry = ManifestEntry([r'somepath\myotherinclude.h'], "474e7fc26a592d84dfa7416c10f036c6", "8771d7ebcf6c8bd57a3d6485f63e3a89") manifest.addEntry(newEntry) self.assertEqual(newEntry, manifest.entries()[0])
def testTouchEntry(self): manifest = Manifest(TestManifest.entries) self.assertEqual(TestManifest.entry1, manifest.entries()[0]) manifest.touchEntry(1) self.assertEqual(TestManifest.entry2, manifest.entries()[0])
def testCreateWithEntries(self): manifest = Manifest(TestManifest.entries) self.assertEqual(TestManifest.entries, manifest.entries())
def testCreateEmpty(self): manifest = Manifest() self.assertFalse(manifest.entries())