def test_has_revision(self): """Test when there's a revision.""" os.mkdir('/root') self.fs.CreateFile(os.path.join('/root', utils.LOCAL_SOURCE_MANIFEST), contents='revision') self.assertEqual('revision', update_task.get_local_source_revision())
def test_no_revision(self): """Test when there's no revision.""" self.assertIsNone(update_task.get_local_source_revision())