@@ -13,16 +13,16 @@ class CreateTests(CrudTestsBase):
13
13
@script_test
14
14
def test_create (self ):
15
15
"""
16
- > .: create foo
17
- > .: exists foo
16
+ $ .: create foo
17
+ $ .: exists foo
18
18
True
19
19
"""
20
20
21
21
@script_test
22
22
def test_create_many_parts (self ):
23
23
"""
24
- > .: create foo.bar
25
- > .: exists foo.bar
24
+ $ .: create foo.bar
25
+ $ .: exists foo.bar
26
26
True
27
27
"""
28
28
@@ -31,7 +31,7 @@ class ExistsTests(CrudTestsBase):
31
31
@script_test
32
32
def test_exists_nonexistent (self ):
33
33
"""
34
- > .: exists unknown
34
+ $ .: exists unknown
35
35
False
36
36
"""
37
37
@@ -40,15 +40,15 @@ class GetTests(CrudTestsBase):
40
40
@script_test
41
41
def test_get_existing (self ):
42
42
"""
43
- > .: create foo 1
44
- > .foo: get
43
+ $ .: create foo 1
44
+ $ .foo: get
45
45
1
46
46
"""
47
47
48
48
@script_test
49
49
def test_get_nonexistent (self ):
50
50
"""
51
- > .foo: get
51
+ $ .foo: get
52
52
NameError: '.foo' doesn't exists
53
53
"""
54
54
@@ -57,32 +57,32 @@ class SetTests(CrudTestsBase):
57
57
@script_test
58
58
def test_set_existing (self ):
59
59
"""
60
- > .: create foo 1
61
- > .foo: set 2
62
- > .foo: get
60
+ $ .: create foo 1
61
+ $ .foo: set 2
62
+ $ .foo: get
63
63
2
64
64
"""
65
65
66
66
@script_test
67
67
def test_set_nonexistent (self ):
68
68
"""
69
- > .foo: set 1
69
+ $ .foo: set 1
70
70
NameError: '.foo' doesn't exists
71
71
"""
72
72
73
73
@script_test
74
74
def test_set_no_new_value (self ):
75
75
"""
76
- > .: create foo 1
77
- > .foo: set
76
+ $ .: create foo 1
77
+ $ .foo: set
78
78
TypeError: set_action() missing 1 required positional argument: 'new_value'
79
79
"""
80
80
81
81
@script_test
82
82
def test_set_different_type (self ):
83
83
"""
84
- > .: create foo 2
85
- > .foo: set "rabarbar"
84
+ $ .: create foo 2
85
+ $ .foo: set "rabarbar"
86
86
TypeError: Cannot assign value with type 'str' to 'int' node
87
87
"""
88
88
@@ -91,54 +91,52 @@ class ListTests(CrudTestsBase):
91
91
@script_test
92
92
def test_list_empty (self ):
93
93
"""
94
- > .: create foo
95
- > .foo: list
94
+ $ .: create foo
95
+ $ .foo: list
96
96
"""
97
97
98
98
@script_test
99
99
def test_list_in_creation_order (self ):
100
100
"""
101
- > .: create foo.Z_first
102
- > .: create foo.A_second
103
- > .foo: list
101
+ $ .: create foo.Z_first
102
+ $ .: create foo.A_second
103
+ $ .foo: list
104
104
Z_first
105
105
A_second
106
106
"""
107
107
108
108
@script_test
109
109
def test_list_only_attributes (self ):
110
110
"""
111
- > .: create .test.@attr
112
- > .: create .test.key
113
- > .test: list.attributes
111
+ $ .: create .test.@attr
112
+ $ .: create .test.key
113
+ $ .test: list.attributes
114
114
@attr
115
115
"""
116
116
117
117
@script_test
118
118
def test_list_all (self ):
119
119
"""
120
- > .: create .test.@attr
121
- > .: create .test.key
122
- > .test: list.all
120
+ $ .: create .test.@attr
121
+ $ .: create .test.key
122
+ $ .test: list.all
123
123
@attr
124
124
key
125
125
"""
126
126
127
127
@script_test
128
128
def test_list_only_normal (self ):
129
129
"""
130
- > .: create .test.@attr
131
- > .: create .test.key
132
- > .test: list
130
+ $ .: create .test.@attr
131
+ $ .: create .test.key
132
+ $ .test: list
133
133
key
134
134
"""
135
135
136
-
137
- class ListActionsTests (CrudTestsBase ):
138
136
@script_test
139
- def test_list_action (self ):
137
+ def test_list_actions (self ):
140
138
"""
141
- > .: list.actions
139
+ $ .: list.actions
142
140
create
143
141
exists
144
142
get
@@ -152,15 +150,15 @@ class RemoveTests(CrudTestsBase):
152
150
@script_test
153
151
def test_remove_existing (self ):
154
152
"""
155
- > .: create foo
156
- > .foo: remove
157
- > .: exists foo
153
+ $ .: create foo
154
+ $ .foo: remove
155
+ $ .: exists foo
158
156
False
159
157
"""
160
158
161
159
@script_test
162
160
def test_remove_nonexistent (self ):
163
161
"""
164
- > .foo: remove
162
+ $ .foo: remove
165
163
NameError: '.foo' doesn't exists
166
164
"""
0 commit comments