@@ -19,14 +19,14 @@ def test_computer_desc():
19
19
ret = {"name" : "salt" , "changes" : {}, "result" : True , "comment" : "" }
20
20
mock = MagicMock (side_effect = ["salt" , "stack" , "stack" ])
21
21
with patch .dict (win_system .__salt__ , {"system.get_computer_desc" : mock }):
22
- ret .update ({"comment" : "Computer description" " already set to 'salt'" })
22
+ ret .update ({"comment" : "Computer description already set to 'salt'" })
23
23
assert win_system .computer_desc ("salt" ) == ret
24
24
25
25
with patch .dict (win_system .__opts__ , {"test" : True }):
26
26
ret .update (
27
27
{
28
28
"result" : None ,
29
- "comment" : "Computer description" " will be changed to 'salt'" ,
29
+ "comment" : "Computer description will be changed to 'salt'" ,
30
30
}
31
31
)
32
32
assert win_system .computer_desc ("salt" ) == ret
@@ -37,7 +37,7 @@ def test_computer_desc():
37
37
ret .update (
38
38
{
39
39
"result" : False ,
40
- "comment" : "Unable to set" " computer description to 'salt'" ,
40
+ "comment" : "Unable to set computer description to 'salt'" ,
41
41
}
42
42
)
43
43
assert win_system .computer_desc ("salt" ) == ret
@@ -70,7 +70,7 @@ def test_computer_name():
70
70
ret .update (
71
71
{
72
72
"result" : None ,
73
- "comment" : "Computer name will" " be changed to 'salt'" ,
73
+ "comment" : "Computer name will be changed to 'salt'" ,
74
74
}
75
75
)
76
76
assert win_system .computer_name ("salt" ) == ret
@@ -82,7 +82,7 @@ def test_computer_name():
82
82
):
83
83
ret .update (
84
84
{
85
- "comment" : "Unable to set computer name" " to 'salt'" ,
85
+ "comment" : "Unable to set computer name to 'salt'" ,
86
86
"result" : False ,
87
87
}
88
88
)
0 commit comments