def test_doesnt_detect_without_version_file(self): with temp_directory() as directory: self.assertFalse(VersionFileReleaser.detect())
def test_doesnt_detect_without_version_file(self): with temp_directory(): self.assertFalse(VersionFileReleaser.detect())
def test_detects_version_file(self): with temp_directory() as directory: touch('VERSION') self.assertTrue(VersionFileReleaser.detect())
def test_detects_version_file(self): with temp_directory(): touch('VERSION') self.assertTrue(VersionFileReleaser.detect())