Current File : //opt/imh-python/lib/python2.7/test/test_winsound.pyc |
�
��Wc @ s d d l Z d d l m Z e j d � d d l Z d d l Z d d l Z e j d � Z e j d � Z d d l
Z
d � Z d e j f d � � YZ
d e j f d
� � YZ d e j f d � � YZ d
� Z d a d � Z d � Z e d k re � n d S( i����N( t test_supportt audiot winsoundt ctypesc C s� yh t j j j � d k r t St j t j d j | � � } t j | d � d } | d k rc t
St SWn t k
r| t SXd S( sA Find out if a particular event is configured with a default soundi s, AppEvents\Schemes\Apps\.Default\{0}\.Defaulti u N( R t windllt winmmt mixerGetNumDevst Falset _winregt OpenKeyExt HKEY_CURRENT_USERt formatt EnumValuet Truet WindowsError( t soundt keyt value( ( sk /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_winsound.pyt has_sound s
t BeepTestc B s, e Z d � Z d � Z d � Z d � Z RS( c C sI | j t t j � | j t t j d d � | j t t j d d � d S( Ni$ iK i � ( t assertRaisest TypeErrorR t Beept
ValueError( t self( ( sk /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_winsound.pyt test_errors) s c C s$ | j d d � | j d d � d S( Ni% iK i� ( t _beep( R ( ( sk /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_winsound.pyt
test_extremes. s c C s1 x* t d d d � D] } | j | d � q Wd S( Nid i� iK ( t xrangeR ( R t i( ( sk /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_winsound.pyt test_increasingfrequency2 s c G s) y t j | � Wn t k
r$ n Xd S( N( R R t RuntimeError( R t args( ( sk /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_winsound.pyR 6 s
( t __name__t
__module__R R R R ( ( ( sk /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_winsound.pyR s t MessageBeepTestc B sG e Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( c C s t j d � d S( Ng �?( t timet sleep( R ( ( sk /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_winsound.pyt tearDownG s c C s= | j t t j d � | j t t j d d � t j � d S( Nt badi* ( R R R t MessageBeep( R ( ( sk /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_winsound.pyt test_defaultJ s c C s t j t j � d S( N( R R( t MB_OK( R ( ( sk /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_winsound.pyt test_okO s c C s t j t j � d S( N( R R( t MB_ICONASTERISK( R ( ( sk /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_winsound.pyt
test_asteriskR s c C s t j t j � d S( N( R R( t MB_ICONEXCLAMATION( R ( ( sk /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_winsound.pyt test_exclamationU s c C s t j t j � d S( N( R R( t MB_ICONHAND( R ( ( sk /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_winsound.pyt test_handX s c C s t j t j � d S( N( R R( t MB_ICONQUESTION( R ( ( sk /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_winsound.pyt
test_question[ s ( R! R"