-
Notifications
You must be signed in to change notification settings - Fork 10
/
models_system_test.py
266 lines (190 loc) · 6.66 KB
/
models_system_test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
def system_has_calculator_test():
import models
system = models.System()
if not hasattr(system, 'calculator'):
raise TypeError('system has no attribute calculator')
def system_has_calculator_parameters_test():
import models
system = models.System()
if not hasattr(system, 'calculator_parameters'):
raise TypeError('system has no attribute calculator_parameters')
def system_has_cell_test():
import models
system = models.System()
if not hasattr(system, 'cell'):
raise TypeError('system has no attribute cell')
def system_has_charge_test():
import models
system = models.System()
if not hasattr(system, 'charge'):
raise TypeError('system has no attribute charge')
def system_has_charges_test():
import models
system = models.System()
if not hasattr(system, 'charges'):
raise TypeError('system has no attribute charges')
def system_has_constraints_test():
import models
system = models.System()
if not hasattr(system, 'constraints'):
raise TypeError('system has no attribute constraints')
def system_has_ctime_test():
import models
system = models.System()
if not hasattr(system, 'ctime'):
raise TypeError('system has no attribute ctime')
def system_has_data_test():
import models
system = models.System()
if not hasattr(system, 'data'):
raise TypeError('system has no attribute data')
def system_has_dipole_test():
import models
system = models.System()
if not hasattr(system, 'dipole'):
raise TypeError('system has no attribute dipole')
def system_has_energy_test():
import models
system = models.System()
if not hasattr(system, 'energy'):
raise TypeError('system has no attribute energy')
def system_has_fmax_test():
import models
system = models.System()
if not hasattr(system, 'fmax'):
raise TypeError('system has no attribute fmax')
def system_has_forces_test():
import models
system = models.System()
if not hasattr(system, 'forces'):
raise TypeError('system has no attribute forces')
def system_has_free_energy_test():
import models
system = models.System()
if not hasattr(system, 'free_energy'):
raise TypeError('system has no attribute free_energy')
def system_has_id_test():
import models
system = models.System()
if not hasattr(system, 'id'):
raise TypeError('system has no attribute id')
def system_has_initial_charges_test():
import models
system = models.System()
if not hasattr(system, 'initial_charges'):
raise TypeError('system has no attribute initial_charges')
def system_has_initial_magmoms_test():
import models
system = models.System()
if not hasattr(system, 'initial_magmoms'):
raise TypeError('system has no attribute initial_magmoms')
def system_has_key_value_pairs_test():
import models
system = models.System()
if not hasattr(system, 'key_value_pairs'):
raise TypeError('system has no attribute key_value_pairs')
def system_has_keys_test():
import models
system = models.System()
if not hasattr(system, 'keys'):
raise TypeError('system has no attribute keys')
def system_has_magmom_test():
import models
system = models.System()
if not hasattr(system, 'magmom'):
raise TypeError('system has no attribute magmom')
def system_has_magmoms_test():
import models
system = models.System()
if not hasattr(system, 'magmoms'):
raise TypeError('system has no attribute magmoms')
def system_has_mass_test():
import models
system = models.System()
if not hasattr(system, 'mass'):
raise TypeError('system has no attribute mass')
def system_has_masses_test():
import models
system = models.System()
if not hasattr(system, 'masses'):
raise TypeError('system has no attribute masses')
def system_has_metadata_test():
import models
system = models.System()
if not hasattr(system, 'metadata'):
raise TypeError('system has no attribute metadata')
def system_has_momenta_test():
import models
system = models.System()
if not hasattr(system, 'momenta'):
raise TypeError('system has no attribute momenta')
def system_has_mtime_test():
import models
system = models.System()
if not hasattr(system, 'mtime'):
raise TypeError('system has no attribute mtime')
def system_has_natoms_test():
import models
system = models.System()
if not hasattr(system, 'natoms'):
raise TypeError('system has no attribute natoms')
def system_has_number_keys_test():
import models
system = models.System()
if not hasattr(system, 'number_keys'):
raise TypeError('system has no attribute number_keys')
def system_has_numbers_test():
import models
system = models.System()
if not hasattr(system, 'numbers'):
raise TypeError('system has no attribute numbers')
def system_has_pbc_test():
import models
system = models.System()
if not hasattr(system, 'pbc'):
raise TypeError('system has no attribute pbc')
def system_has_positions_test():
import models
system = models.System()
if not hasattr(system, 'positions'):
raise TypeError('system has no attribute positions')
def system_has_smax_test():
import models
system = models.System()
if not hasattr(system, 'smax'):
raise TypeError('system has no attribute smax')
def system_has_species_test():
import models
system = models.System()
if not hasattr(system, 'species'):
raise TypeError('system has no attribute species')
def system_has_stress_test():
import models
system = models.System()
if not hasattr(system, 'stress'):
raise TypeError('system has no attribute stress')
def system_has_tags_test():
import models
system = models.System()
if not hasattr(system, 'tags'):
raise TypeError('system has no attribute tags')
def system_has_text_keys_test():
import models
system = models.System()
if not hasattr(system, 'text_keys'):
raise TypeError('system has no attribute text_keys')
def system_has_unique_id_test():
import models
system = models.System()
if not hasattr(system, 'unique_id'):
raise TypeError('system has no attribute unique_id')
def system_has_username_test():
import models
system = models.System()
if not hasattr(system, 'username'):
raise TypeError('system has no attribute username')
def system_has_volume_test():
import models
system = models.System()
if not hasattr(system, 'volume'):
raise TypeError('system has no attribute volume')