def test_changeAllProjectVersionsPreRelease(self):
        root = FilePath(self.mktemp())

        coreNews = ("Twisted Core 1.0.0pre1 (2009-12-25)\n"
                    "===============================\n"
                    "\n")
        webNews = ("Twisted Web 1.0.0pre1 (2009-12-25)\n"
                   "==================================\n"
                   "\n")
        structure = {
            "README.rst": "Hi this is 1.0.0pre1.",
            "NEWS": coreNews + webNews,
            "twisted": {
                "topfiles": {
                    "README": "Hi this is 1.0.0pre1",
                    "NEWS": coreNews},
                "_version.py": genVersion("twisted", 1, 0, 0, 1),
                "web": {
                    "topfiles": {
                        "README": "Hi this is 1.0.0pre1",
                        "NEWS": webNews}
                }}}
        self.createStructure(root, structure)
        releaseDate = date(2010, 1, 1)
        changeAllProjectVersions(root, False, False, releaseDate)
        coreNews = ("Twisted Core 1.0.0 (2010-01-01)\n"
                    "===============================\n"
                    "\n")
        webNews = ("Twisted Web 1.0.0 (2010-01-01)\n"
                   "==============================\n"
                   "\n")
        outStructure = {
            "README.rst": "Hi this is 1.0.0.",
            "NEWS": coreNews + webNews,
            "twisted": {
                "topfiles": {
                    "README": "Hi this is 1.0.0",
                    "NEWS": coreNews},
                "_version.py": genVersion("twisted", 1, 0, 0),
                "web": {
                    "topfiles": {
                        "README": "Hi this is 1.0.0",
                        "NEWS": webNews}
                }}}
        self.assertStructure(root, outStructure)
Test that a user removed from a group can no longer see threads they
dataset/ETHPy150Open twisted/twisted/twisted/python/test/test_release.py/ChangeVersionTests.test_changeAllProjectVersionsPreRelease--crossover with--dataset/ETHPy150Open ofa/connect/open_connect/groups/tests/test_tasks.py/TestRemoveUserFromGroup.test_user_removed_from_inactive_threads