<s> import sublime <EOL> import unittest <EOL> from Dart . lib . path import is_dart_script <EOL> from Dart . lib . path import is_view_dart_script <EOL> class Test_is_dart_script ( unittest . TestCase ) : <EOL> def testSucceedsIfDartScript ( self ) : <EOL> self . assertTrue ( is_dart_script ( "<STR_LIT>" ) ) <EOL> def testFailsIfNotDartScript ( self ) : <EOL> self . assertFalse ( is_dart_script ( "<STR_LIT>" ) ) <EOL> def testFailsWithEmtpyPath ( self ) : <EOL> self . assertFalse ( is_dart_script ( "<STR_LIT>" ) ) <EOL> class Test_is_view_dart_script ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> self . view = sublime . active_window ( ) . new_file ( ) <EOL> def testFailsIfFileNotOnDisk ( self ) : <EOL> self . assertFalse ( is_view_dart_script ( self . view ) ) <EOL> def tearDown ( self ) : <EOL> self . view . close ( ) </s>
