<s> """<STR_LIT>""" <EOL> from __future__ import absolute_import , print_function <EOL> __all__ = [ '<STR_LIT>' ] <EOL> from sentry . models import Release <EOL> from sentry . plugins import ReleaseHook <EOL> from sentry . testutils import TestCase <EOL> class StartReleaseTest ( TestCase ) : <EOL> def test_minimal ( self ) : <EOL> project = self . create_project ( ) <EOL> version = '<STR_LIT>' <EOL> hook = ReleaseHook ( project ) <EOL> hook . start_release ( version ) <EOL> release = Release . objects . get ( <EOL> project = project , <EOL> version = version , <EOL> ) <EOL> assert release . date_started <EOL> class FinishReleaseTest ( TestCase ) : <EOL> def test_minimal ( self ) : <EOL> project = self . create_project ( ) <EOL> version = '<STR_LIT>' <EOL> hook = ReleaseHook ( project ) <EOL> hook . finish_release ( version ) <EOL> release = Release . objects . get ( <EOL> project = project , <EOL> version = version , <EOL> ) <EOL> assert release . date_released </s>
