<s> import os <EOL> import unittest <EOL> from robotide . context import IS_WINDOWS <EOL> from robotide . utils import is_same_drive <EOL> if IS_WINDOWS : <EOL> class IsSameDriveTestCase ( unittest . TestCase ) : <EOL> def test_same_drive_is_case_insensitive ( self ) : <EOL> self . assertTrue ( is_same_drive ( '<STR_LIT>' , '<STR_LIT>' ) ) <EOL> self . assertFalse ( is_same_drive ( '<STR_LIT>' , '<STR_LIT>' ) ) <EOL> def test_same_drive_with_different_path ( self ) : <EOL> path1 = os . path . join ( '<STR_LIT>' , '<STR_LIT:foo>' , '<STR_LIT>' ) <EOL> path2 = os . path . join ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> not_same_drive = os . path . join ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> self . assertTrue ( is_same_drive ( path1 , path2 ) ) <EOL> self . assertFalse ( is_same_drive ( path1 , not_same_drive ) ) <EOL> self . assertFalse ( is_same_drive ( not_same_drive , path1 ) ) <EOL> def test_same_drive_with_same_path ( self ) : <EOL> path = os . path . join ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> self . assertTrue ( is_same_drive ( path , path ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
