@@ -1140,6 +1140,9 @@ def test_uuid_weakref(self):
11401140 weak = weakref .ref (strong )
11411141 self .assertIs (strong , weak ())
11421142
1143+
1144+ class TestUUIDCli (BaseTestUUID , unittest .TestCase ):
1145+ uuid = py_uuid
11431146 @mock .patch .object (sys , "argv" , ["" , "-u" , "uuid3" , "-n" , "@dns" ])
11441147 @mock .patch ('sys.stderr' , new_callable = io .StringIO )
11451148 def test_cli_namespace_required_for_uuid3 (self , mock_err ):
@@ -1228,7 +1231,6 @@ def test_cli_uuid1(self):
12281231 self .assertEqual (output , str (uuid_output ))
12291232 self .assertEqual (uuid_output .version , 1 )
12301233
1231-
12321234 @mock .patch .object (sys , "argv" ,
12331235 ["" , "-u" , "uuid6" ])
12341236 def test_cli_uuid6 (self ):
@@ -1243,7 +1245,6 @@ def test_cli_uuid6(self):
12431245 self .assertEqual (output , str (uuid_output ))
12441246 self .assertEqual (uuid_output .version , 6 )
12451247
1246-
12471248 @mock .patch .object (sys , "argv" ,
12481249 ["" , "-u" , "uuid7" ])
12491250 def test_cli_uuid7 (self ):
@@ -1258,7 +1259,6 @@ def test_cli_uuid7(self):
12581259 self .assertEqual (output , str (uuid_output ))
12591260 self .assertEqual (uuid_output .version , 7 )
12601261
1261-
12621262 @mock .patch .object (sys , "argv" ,
12631263 ["" , "-u" , "uuid8" ])
12641264 def test_cli_uuid8 (self ):
@@ -1273,7 +1273,6 @@ def test_cli_uuid8(self):
12731273 self .assertEqual (output , str (uuid_output ))
12741274 self .assertEqual (uuid_output .version , 8 )
12751275
1276-
12771276class TestUUIDWithoutExtModule (BaseTestUUID , unittest .TestCase ):
12781277 uuid = py_uuid
12791278
0 commit comments