import sublime

import unittest
import os

from Dart.lib.sdk import SDK


class Test_SDK(unittest.TestCase):
    def setUp(self):
        self.view = sublime.active_window().new_file()

    def testUsesUserDefinedPath(self):
        sdk = SDK('/xxx/yyy')
        self.assertEqual(sdk.path_to_sdk, '/xxx/yyy')

    @unittest.skipUnless(os.name == 'nt', 'only for Windows')
    def testCanFindPathToDartInterpreterOnWindows(self):
        self.view.settings().set('dartsdk_path', 'c:/foo/bar')
        sdk = SDK()
        self.assertEqual(sdk.path_to_dart, r'c:\foo\bar\bin\dart.exe')

    @unittest.skipIf(os.name == 'nt', 'only for non-Windows platforms')
    def testCanFindPathToDartInterpreter(self):
        sdk = SDK('/foo/bar')
        self.assertEqual(sdk.path_to_dart, '/foo/bar/bin/dart')

    @unittest.skipIf(os.name == 'nt', 'only for non-Windows platforms')
    def testCanFindPathToDartAnalyzer(self):
        sdk = SDK('/foo/bar')
        self.assertEqual(sdk.path_to_analyzer, '/foo/bar/bin/dartanalyzer')

    def tearDown(self):
        self.view.close()

@@ -307,282 +307,8 @@
 ')%0A%0A
-    @unittest.skipUnless(os.name == 'nt', 'only for Windows')%0A    def testCanFindPathToDartInterpreterOnWindows(self):%0A        self.view.settings().set('dartsdk_path', 'c:/foo/bar')%0A        sdk = SDK()%0A        self.assertEqual(sdk.path_to_dart, r'c:%5Cfoo%5Cbar%5Cbin%5Cdart.exe')%0A%0A
     

Remove unecessary test