77import unittest
88from argparse import Namespace
99
10- import six
11-
1210pkg_root = os .path .abspath (os .path .join (os .path .dirname (__file__ ), ".." , ".." , ".." , ".." )) # noqa
1311sys .path .insert (0 , pkg_root ) # noqa
1412
@@ -63,7 +61,7 @@ def test_when_given_a_uri_it_prints_an_alias(self):
6361 args = Namespace (uri_or_alias = new_area_uri )
6462 SelectCommand (args )
6563
66- six .assertRegex (self , stdout .captured (), "alias \" {}\" " .format ('deaf' ))
64+ self .assertRegex (stdout .captured (), "alias \" {}\" " .format ('deaf' ))
6765
6866 def test_when_given_an_alias_that_matches_no_areas_it_prints_a_warning (self ):
6967
@@ -75,7 +73,7 @@ def test_when_given_an_alias_that_matches_no_areas_it_prints_a_warning(self):
7573 args = Namespace (uri_or_alias = 'aaa' )
7674 SelectCommand (args )
7775
78- six .assertRegex (self , stdout .captured (), "don't recognize area" )
76+ self .assertRegex (stdout .captured (), "don't recognize area" )
7977
8078 def test_when_given_an_alias_that_matches_more_than_one_area_it_prints_a_warning (self ):
8179 config = hca .get_config ()
@@ -91,7 +89,7 @@ def test_when_given_an_alias_that_matches_more_than_one_area_it_prints_a_warning
9189 args = Namespace (uri_or_alias = 'dea' )
9290 SelectCommand (args )
9391
94- six .assertRegex (self , stdout .captured (), "matches more than one" )
92+ self .assertRegex (stdout .captured (), "matches more than one" )
9593
9694 def test_when_given_an_alias_that_matches_one_area_it_selects_it (self ):
9795 a_uuid = 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa'
0 commit comments